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

Commit 4c3e567d authored by Hui Yu's avatar Hui Yu Committed by Automerger Merge Worker
Browse files

Merge "Only check on launcher proc state when param visible is true." into...

Merge "Only check on launcher proc state when param visible is true." into rvc-dev am: e1add8b5 am: 03117853 am: 527dee97 am: eb6b6e9e

Change-Id: Ibe57c79a174472fca9e7b68e8b0a265171003663
parents 41c3b56c eb6b6e9e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -3647,11 +3647,13 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
    }

    private void updateAppOpsLocked(Host host, boolean visible) {
        // The launcher must be at TOP.
        if (visible) {
            final int procState = mActivityManagerInternal.getUidProcessState(host.id.uid);
            if (procState > ActivityManager.PROCESS_STATE_TOP) {
                // The launcher must be at TOP.
                return;
            }
        }

        final List<ResolveInfo> allHomeCandidates = new ArrayList<>();
        // Default launcher from package manager.