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

Commit 2209d9ec authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Occurred "com.android.settings" force close 15 times at...

Merge "Settings: Occurred "com.android.settings" force close 15 times at java.lang.IllegalArgumentException: cannot apply policy to UID 1001000 at monkey test mode."
parents 2802ec26 588dab62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -251,6 +251,9 @@ public class AppDataUsage extends DataUsageBase implements Preference.OnPreferen

    @Override
    public boolean onPreferenceChange(Preference preference, Object newValue) {
        if (com.android.settings.Utils.isMonkeyRunning()) {
            return false;
        }
        if (preference == mRestrictBackground) {
            mDataSaverBackend.setIsBlacklisted(mAppItem.key, mPackageName, !(Boolean) newValue);
            return true;