diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index a93a12151..2765d332a 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -1487,7 +1487,7 @@ public class ConversationActivity extends XmppActivity } private void setNeverAskForBatteryOptimizationsAgain() { - getPreferences().edit().putBoolean("show_battery_optimization", false).commit(); + getPreferences().edit().putBoolean("show_battery_optimization", false).apply(); } private void openBatteryOptimizationDialogIfNeeded() {