If it was 2023 I would say someone just vibecoded a trivial android piece of code. But nowadays Android studio comes with Gemini agent integrated, and I doubt it would produce such terrible redundancy on a code so simple.