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

Commit bf386f73 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix b/265409044: The battery usage page auto goes up when coming back...

Merge "Fix b/265409044: The battery usage page auto goes up when coming back from app details page."
parents a7999098 7627a0e5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -217,13 +217,16 @@ public class BatteryUsageBreakdownController extends BasePreferenceController
    }

    private void showSpinnerAndAppList() {
        removeAndCacheAllPreferences();
        if (mBatteryDiffData == null) {
            mHandler.post(() -> {
                removeAndCacheAllPreferences();
            });
            return;
        }
        mSpinnerPreference.setVisible(true);
        mAppListPreferenceGroup.setVisible(true);
        mHandler.post(() -> {
            removeAndCacheAllPreferences();
            addAllPreferences();
        });
    }