fix: fixed boolean evaluation in the code

This commit is contained in:
antonio 2023-07-30 16:57:18 +02:00
parent fe3ba9fb89
commit 6572b846c8
5 changed files with 5 additions and 5 deletions

View file

@ -53,7 +53,7 @@ public class BaseActivity extends AppCompatActivity {
}
private void checkBatteryOptimization() {
if (detectBatteryOptimization() && Boolean.TRUE.equals(Preferences.askForOptimization())) {
if (detectBatteryOptimization() && Preferences.askForOptimization()) {
showBatteryOptimizationDialog();
}
}