From e4a04eccd8f7fa6e53e0b53a62c59cf1b9f8da9e Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 28 Apr 2020 18:51:01 -0400 Subject: [PATCH] Fix history task stack Test: manual Bug: 154721261 Change-Id: Ib39fff447d0d6571b4267700eaf39e425fa114d7 --- AndroidManifest.xml | 4 +--- .../history/NotificationHistoryActivity.java | 14 -------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 11c67a18ad3..3bb9f5d62f3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1200,8 +1200,7 @@ + android:label="@string/notification_history_title"> @@ -2532,7 +2531,6 @@ diff --git a/src/com/android/settings/notification/history/NotificationHistoryActivity.java b/src/com/android/settings/notification/history/NotificationHistoryActivity.java index 005b4bb795f..c45242ece25 100644 --- a/src/com/android/settings/notification/history/NotificationHistoryActivity.java +++ b/src/com/android/settings/notification/history/NotificationHistoryActivity.java @@ -200,20 +200,6 @@ public class NotificationHistoryActivity extends Activity { super.onDestroy(); } - @Override - public void onBackPressed() { - handleBackPressed(); - } - - private void handleBackPressed() { - if (getFragmentManager().getBackStackEntryCount() > 1) { - super.onBackPressed(); - } else { - startActivity(new Intent(Settings.ACTION_NOTIFICATION_SETTINGS)); - finish(); - } - } - private void bindSwitch() { if (mSwitchBar != null) { mSwitchBar.setSwitchBarText(R.string.notification_history_toggle,