Fix Apps storage page to show apps for selected user only
Currently only the personal and managed profile filters for the respective profiles. And there's no filter to filter out the apps for the private profile. This cl adds that filter and sets it for the private profile user. Bug: 317159160 Test: manual Change-Id: Ia19171b1be73a061a598c2365c88e91ad2f8fec8
This commit is contained in:
@@ -76,7 +76,8 @@ public class AppStateClonedAppsBridge extends AppStateBaseBridge{
|
||||
protected void updateExtraInfo(AppEntry app, String pkg, int uid) {
|
||||
// Display package if allowlisted but not yet cloned.
|
||||
// Or if the app is present in clone profile alongwith being in allowlist.
|
||||
if (mAllowedApps.contains(pkg) && ((!mCloneProfileApps.contains(pkg) || (app.isCloned)))) {
|
||||
if (mAllowedApps.contains(pkg)
|
||||
&& ((!mCloneProfileApps.contains(pkg) || (app.isClonedProfile())))) {
|
||||
app.extraInfo = Boolean.TRUE;
|
||||
} else {
|
||||
app.extraInfo = Boolean.FALSE;
|
||||
|
||||
Reference in New Issue
Block a user