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

Commit 27013959 authored by Gabriele M's avatar Gabriele M
Browse files

AppOpsDetails: Generate correct summary when changing list prefs

MODE_ENTRIES are strings of numbers, not names.

Change-Id: I749a808951d5359e92b6974714874f705c373342
parent 79287b50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ public class AppOpsDetails extends SettingsPreferenceFragment {
                            String value = newValue.toString();
                            int selectedIndex = listPref.findIndexOfValue(value);
                            mAppOps.setMode(switchOp, uid, pkgName, positionToMode(selectedIndex));
                            String summary = getSummary(MODE_ENTRIES[selectedIndex],
                            String summary = getSummary(listPref.getEntries()[selectedIndex],
                                    entry.getCountsText(res), entry.getTimeText(res, true));
                            listPref.setSummary(summary);
                            return true;