Fix some history issues
- Work profile notifs not showing - Work profile icon is too big Fixes: 228397748 atest: manually view work profile notifs in history Change-Id: I76f7ad37bcfcf4ee7c909516f456920b7e19c541
This commit is contained in:
@@ -356,8 +356,10 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
||||
}
|
||||
final int newState = isChecked ? 1 : 0;
|
||||
if (oldState != newState) {
|
||||
Settings.Secure.putInt(getContentResolver(),
|
||||
NOTIFICATION_HISTORY_ENABLED, newState);
|
||||
for (int user : mUm.getProfileIds(ActivityManager.getCurrentUser(), false)) {
|
||||
Settings.Secure.putIntForUser(getContentResolver(),
|
||||
NOTIFICATION_HISTORY_ENABLED, newState, user);
|
||||
}
|
||||
mUiEventLogger.log(isChecked ? NotificationHistoryEvent.NOTIFICATION_HISTORY_ON
|
||||
: NotificationHistoryEvent.NOTIFICATION_HISTORY_OFF);
|
||||
Log.d(TAG, "onSwitchChange history to " + isChecked);
|
||||
|
@@ -121,7 +121,7 @@ public class NotificationSbnAdapter extends
|
||||
int userId = normalizeUserId(sbn);
|
||||
if (!mUserBadgeCache.containsKey(userId)) {
|
||||
Drawable profile = mContext.getPackageManager().getUserBadgeForDensity(
|
||||
UserHandle.of(userId), -1);
|
||||
UserHandle.of(userId), 0);
|
||||
mUserBadgeCache.put(userId, profile);
|
||||
}
|
||||
holder.setProfileBadge(mUserBadgeCache.get(userId));
|
||||
|
Reference in New Issue
Block a user