mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-28 16:55:56 +00:00
Debug: doze
This commit is contained in:
parent
db4a298b3c
commit
6bdfffcce5
1 changed files with 2 additions and 2 deletions
|
@ -1032,10 +1032,10 @@ 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 && !Helper.isArc());
|
||||
btnDoze.setEnabled(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !Helper.isArc() && (!isIgnoring || BuildConfig.DEBUG));
|
||||
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);
|
||||
btnDoze.setText(isIgnoring && BuildConfig.DEBUG ? R.string.title_setup_manage : R.string.title_setup_grant);
|
||||
|
||||
tvDoze15.setVisibility(Helper.isAndroid15() && !isIgnoring ? View.VISIBLE : View.GONE);
|
||||
tvDoze12.setVisibility(!canScheduleExact && !isIgnoring ? View.VISIBLE : View.GONE);
|
||||
|
|
Loading…
Reference in a new issue