Instead of reloading the launcher, updating items dynamically when

Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
This commit is contained in:
Sunny Goyal
2016-03-18 18:29:24 -07:00
parent d5bd67dfa9
commit da891c1a22
4 changed files with 69 additions and 14 deletions
@@ -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;
}
}