Google shit again.

This commit is contained in:
2021-03-20 02:44:27 +01:00
parent a693ced32e
commit 4a2a1a0550
9 changed files with 39 additions and 16 deletions

View File

@ -1187,16 +1187,21 @@ public class Miscellaneous extends Service
return returnValue;
}
public static boolean googleToBlameForLocation()
public static boolean googleToBlameForLocation(boolean checkExistingRules)
{
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
{
if (BuildConfig.FLAVOR.equalsIgnoreCase("googlePlayFlavor"))
{
if (Rule.isAnyRuleUsing(Trigger.Trigger_Enum.pointOfInterest))
if(checkExistingRules)
{
return true;
if (Rule.isAnyRuleUsing(Trigger.Trigger_Enum.pointOfInterest))
{
return true;
}
}
else
return true;
}
}