From 9fada9c0e4b6be8100bbc5e6a929bc2d12ebbdc4 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 9 Jul 2019 07:49:15 +0200 Subject: [PATCH] Always ask for disabling battery optimizations --- app/src/main/java/eu/faircode/email/FragmentSetup.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 1e519fb592..a1d7a78f2c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -353,7 +353,8 @@ public class FragmentSetup extends FragmentBase { btnDoze.setEnabled(!ignoring); // https://issuetracker.google.com/issues/37070074 - ignoring = (ignoring || Build.VERSION.SDK_INT != Build.VERSION_CODES.M); + //ignoring = (ignoring || Build.VERSION.SDK_INT != Build.VERSION_CODES.M); + tvDozeDone.setText(ignoring ? R.string.title_setup_done : R.string.title_setup_to_do); tvDozeDone.setTextColor(ignoring ? textColorPrimary : colorWarning); tvDozeDone.setCompoundDrawablesWithIntrinsicBounds(ignoring ? check : null, null, null, null);