Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c12e8be1 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Remove unneeded code

Because the setting is marked as 'clone to profile'

Test: none/see other cl in topic
Bug: 314320478
Change-Id: I10fe30c4cbb186b9ef5a3a9f583a287b65cebe3e
parent 1a564010
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -365,10 +365,8 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
                }
                final int newState = isChecked ? 1 : 0;
                if (oldState != newState) {
                    for (int user : mUm.getProfileIds(ActivityManager.getCurrentUser(), false)) {
                        Settings.Secure.putIntForUser(getContentResolver(),
                                NOTIFICATION_HISTORY_ENABLED, newState, user);
                    }
                    Settings.Secure.putInt(
                            getContentResolver(), NOTIFICATION_HISTORY_ENABLED, newState);
                    mUiEventLogger.log(isChecked ? NotificationHistoryEvent.NOTIFICATION_HISTORY_ON
                            : NotificationHistoryEvent.NOTIFICATION_HISTORY_OFF);
                    Log.d(TAG, "onSwitchChange history to " + isChecked);