[android] config: extract isFdroid() into method

Signed-off-by: Atemu <git@atemu.net>
This commit is contained in:
Atemu 2024-11-23 16:46:28 +01:00 committed by Konstantin Pastbin
parent 7d7631cece
commit 32e100331a

View file

@ -59,6 +59,12 @@ public final class Config
private Config() {}
@SuppressWarnings("ConstantConditions") // BuildConfig
private static boolean isFdroid()
{
return BuildConfig.FLAVOR.equals("fdroid");
}
private static int getInt(String key, int def)
{
return nativeGetInt(key, def);
@ -216,10 +222,9 @@ public final class Config
setBool(KEY_MISC_KAYAK_ACCEPTED);
}
@SuppressWarnings("ConstantConditions") // BuildConfig
public static boolean isKayakReferralAllowed()
{
return !BuildConfig.FLAVOR.equals("fdroid");
return !isFdroid();
}
public static boolean isLocationRequested()