diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index b578819aa7..17ac8e2dbf 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -92,6 +92,7 @@ import com.android.launcher3.keyboard.ViewGroupFocusHelper; import com.android.launcher3.model.StringCache; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.pm.UserCache; +import com.android.launcher3.util.UserIconInfo; import com.android.launcher3.recyclerview.AllAppsRecyclerViewPool; import com.android.launcher3.util.ItemInfoMatcher; import com.android.launcher3.util.Preconditions; @@ -143,8 +144,16 @@ public class ActivityAllAppsContainerView protected final T mActivityContext; protected final List mAH; - protected final Predicate mPersonalMatcher = ItemInfoMatcher.ofUser( - Process.myUserHandle()); + protected final Predicate mPersonalMatcher = info -> { + if (info == null) { + return false; + } + if (Process.myUserHandle().equals(info.user)) { + return true; + } + UserIconInfo userIconInfo = UserCache.getInstance(getContext()).getUserInfo(info.user); + return userIconInfo.isCloned(); + }; // Lawnchair: Show app from clone profile protected WorkProfileManager mWorkManager; protected final PrivateProfileManager mPrivateProfileManager; protected final Point mFastScrollerOffset = new Point();