Fix history task stack

Test: manual
Bug: 154721261
Change-Id: Ib39fff447d0d6571b4267700eaf39e425fa114d7
This commit is contained in:
Julia Reynolds
2020-04-28 18:51:01 -04:00
parent 6b2716fce0
commit e4a04eccd8
2 changed files with 1 additions and 17 deletions

View File

@@ -1200,8 +1200,7 @@
<activity <activity
android:name=".notification.history.NotificationHistoryActivity" android:name=".notification.history.NotificationHistoryActivity"
android:label="@string/notification_history_title" android:label="@string/notification_history_title">
android:taskAffinity="com.android.settings.notification">
<intent-filter android:priority="1"> <intent-filter android:priority="1">
<action android:name="android.settings.NOTIFICATION_HISTORY" /> <action android:name="android.settings.NOTIFICATION_HISTORY" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
@@ -2532,7 +2531,6 @@
<activity <activity
android:name="Settings$ConfigureNotificationSettingsActivity" android:name="Settings$ConfigureNotificationSettingsActivity"
android:label="@string/configure_notification_settings" android:label="@string/configure_notification_settings"
android:taskAffinity="com.android.settings.notification"
android:exported="true"> android:exported="true">
<intent-filter android:priority="1"> <intent-filter android:priority="1">
<action android:name="android.settings.NOTIFICATION_SETTINGS" /> <action android:name="android.settings.NOTIFICATION_SETTINGS" />

View File

@@ -200,20 +200,6 @@ public class NotificationHistoryActivity extends Activity {
super.onDestroy(); 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() { private void bindSwitch() {
if (mSwitchBar != null) { if (mSwitchBar != null) {
mSwitchBar.setSwitchBarText(R.string.notification_history_toggle, mSwitchBar.setSwitchBarText(R.string.notification_history_toggle,