Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42e7ba49 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Decrease notification-policy writes

With a small delay

Test: manual inspection of evenst in bugreport
Fixes: 175732545
Change-Id: Id4a40a7c02763b11c497c18ee36d6cc42517f180
parent e9a46649
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -864,7 +864,7 @@ public class NotificationManagerService extends SystemService {
    @VisibleForTesting
    protected void handleSavePolicyFile() {
        if (!IoThread.getHandler().hasCallbacks(mSavePolicyFile)) {
            IoThread.getHandler().post(mSavePolicyFile);
            IoThread.getHandler().postDelayed(mSavePolicyFile, 250);
        }
    }