From f6de32884e2debe588f959fd6d7c06e0ecf686bc Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 6 Apr 2024 22:49:49 +0400 Subject: [PATCH] chore: Add check in missing from merge --- .../java/app/revanced/integrations/shared/GmsCoreSupport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/shared/GmsCoreSupport.java b/app/src/main/java/app/revanced/integrations/shared/GmsCoreSupport.java index e68742053c..16f0ed0c2a 100644 --- a/app/src/main/java/app/revanced/integrations/shared/GmsCoreSupport.java +++ b/app/src/main/java/app/revanced/integrations/shared/GmsCoreSupport.java @@ -61,7 +61,8 @@ private static void showBatteryOptimizationDialog(Activity context, .setTitle(str("gms_core_dialog_title")) .setMessage(str(dialogMessageRef)) .setPositiveButton(str(positiveButtonStringRef), onPositiveClickListener) - .setCancelable(false) + // Allow using back button to skip the action, just in case the check can never be satisfied. + .setCancelable(true) .show(); }, 100); }