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

Commit 808913e0 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix restore of notification preferences.

Test: change prefs on package a. trigger a local backup.
uninstall the app. trigger a restore. install the app. verify
that its preferences are restored in settings.
Bug: 31514485
Change-Id: I1d8a9b52c996d326aee650110e31fe80907703a7
parent 96a153a3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ public class RankingHelper implements RankingConfig {
                            r = mRestoredWithoutUids.get(name);
                            if (r == null) {
                                r = new Record();
                                r.pkg = name;
                                mRestoredWithoutUids.put(name, r);
                            }
                        } else {
@@ -606,7 +607,7 @@ public class RankingHelper implements RankingConfig {
    }

    public void onPackagesChanged(boolean removingPackage, String[] pkgList) {
        if (!removingPackage || pkgList == null || pkgList.length == 0
        if (removingPackage || pkgList == null || pkgList.length == 0
                || mRestoredWithoutUids.isEmpty()) {
            return; // nothing to do
        }