mirror of https://github.com/M66B/FairEmail.git
Arc has no battery optimizations
This commit is contained in:
parent
fda09b2f6e
commit
d271c9f7a0
|
@ -1024,7 +1024,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
|
|||
TextViewCompat.setCompoundDrawableTintList(tvDozeDone,
|
||||
ColorStateList.valueOf(isIgnoring ? textColorPrimary : colorWarning));
|
||||
|
||||
btnDoze.setEnabled(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M);
|
||||
btnDoze.setEnabled(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !Helper.isArc());
|
||||
btnDoze.setCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
0, 0, isIgnoring ? R.drawable.twotone_settings_24 : R.drawable.twotone_check_24, 0);
|
||||
btnDoze.setText(isIgnoring ? R.string.title_setup_manage : R.string.title_setup_grant);
|
||||
|
|
Loading…
Reference in New Issue