Instead of reloading the launcher, updating items dynamically when
Quiet mode changes Bug: 27632028,27763316 Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
This commit is contained in:
@@ -93,4 +93,14 @@ public class UserHandleCompat {
|
||||
intent.putExtra(name, mUser);
|
||||
}
|
||||
}
|
||||
|
||||
public static UserHandleCompat fromIntent(Intent intent) {
|
||||
if (Utilities.ATLEAST_LOLLIPOP) {
|
||||
UserHandle user = intent.getParcelableExtra(Intent.EXTRA_USER);
|
||||
if (user != null) {
|
||||
return UserHandleCompat.fromUser(user);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user