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

Commit bf88b269 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Ignore onPreferenceChange for top level preference

Top level preferences are handled in onClick. Returning true would 
toggle the state of the switcher.

Test: Manually tested App & content access page
Bug: 30909943
Change-Id: I9487044aa67c20c9cb0e9bb9de8911f17e05d808
parent a87fa8c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -560,9 +560,10 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
                    }
                }
            }
        }
            return true;
        }
        return false;
    }

    private void removeRestrictionsForApp(AppRestrictionsPreference preference) {
        for (Preference p : preference.mChildren) {