From 4e898fa4f29e25cbd2fb7c4e0cdcc6342e88e417 Mon Sep 17 00:00:00 2001 From: cijo-saju Date: Tue, 28 Mar 2017 22:14:05 +0530 Subject: [PATCH] Run in background instead of writing instantaneously --- .../java/eu/siacs/conversations/ui/ConversationActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index a93a1215..2765d332 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() {