Skip to content

Commit

Permalink
Fix multi-user permissions for Samsung's Secure Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzaidi authored and nyancrimew committed Jun 15, 2017
1 parent a1c2ddf commit 7359e32
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ch/deletescape/lawnchair/LauncherModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,8 @@ public void loadAllApps() {
// Fail if we don't have any apps
// TODO: Fix this. Only fail for the current user.
if (apps == null || apps.isEmpty()) {
return;
//return;
continue;
}
boolean quietMode = mUserManager.isQuietModeEnabled(user);
// Create the ApplicationInfos
Expand Down
14 changes: 12 additions & 2 deletions src/ch/deletescape/lawnchair/compat/UserManagerCompatVN.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,22 @@ public class UserManagerCompatVN extends UserManagerCompatVM {

@Override
public boolean isQuietModeEnabled(UserHandle user) {
return mUserManager.isQuietModeEnabled(user);
try {
return mUserManager.isQuietModeEnabled(user);
}
catch (SecurityException ex) {
return false;
}
}

@Override
public boolean isUserUnlocked(UserHandle user) {
return mUserManager.isUserUnlocked(user);
try {
return mUserManager.isUserUnlocked(user);
}
catch (SecurityException ex) {
return false;
}
}
}

0 comments on commit 7359e32

Please sign in to comment.