Merge "Fix history task stack" into rvc-dev am: 7d1cfa4d84

Change-Id: Ib54bda42c21dca85c8b58374d03c19f2f9c3ce15
This commit is contained in:
TreeHugger Robot
2020-04-29 23:19:53 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 17 deletions

View File

@@ -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,