Merge "Remove unneeded code" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
881ce2ced0
@@ -365,10 +365,8 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
|||||||
}
|
}
|
||||||
final int newState = isChecked ? 1 : 0;
|
final int newState = isChecked ? 1 : 0;
|
||||||
if (oldState != newState) {
|
if (oldState != newState) {
|
||||||
for (int user : mUm.getProfileIds(ActivityManager.getCurrentUser(), false)) {
|
Settings.Secure.putInt(
|
||||||
Settings.Secure.putIntForUser(getContentResolver(),
|
getContentResolver(), NOTIFICATION_HISTORY_ENABLED, newState);
|
||||||
NOTIFICATION_HISTORY_ENABLED, newState, user);
|
|
||||||
}
|
|
||||||
mUiEventLogger.log(isChecked ? NotificationHistoryEvent.NOTIFICATION_HISTORY_ON
|
mUiEventLogger.log(isChecked ? NotificationHistoryEvent.NOTIFICATION_HISTORY_ON
|
||||||
: NotificationHistoryEvent.NOTIFICATION_HISTORY_OFF);
|
: NotificationHistoryEvent.NOTIFICATION_HISTORY_OFF);
|
||||||
Log.d(TAG, "onSwitchChange history to " + isChecked);
|
Log.d(TAG, "onSwitchChange history to " + isChecked);
|
||||||
|
|||||||
Reference in New Issue
Block a user