From 62d50cc0b38fd8154e7a40da7f35f0d1ba031d12 Mon Sep 17 00:00:00 2001 From: Danesh M Date: Thu, 28 Jan 2016 13:35:03 -0800 Subject: Settings : Finish SimPreferenceDialog on dismiss CYNGNOS-1515 Change-Id: I2f69a876419a0ace61a6a8e682496db0d62bbfa1 --- src/com/android/settings/sim/SimPreferenceDialog.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/sim/SimPreferenceDialog.java b/src/com/android/settings/sim/SimPreferenceDialog.java index f03b452..e2a6551 100644 --- a/src/com/android/settings/sim/SimPreferenceDialog.java +++ b/src/com/android/settings/sim/SimPreferenceDialog.java @@ -169,7 +169,6 @@ public class SimPreferenceDialog extends Activity { mSubInfoRecord.setIconTint(tint); mSubscriptionManager.setIconTint(tint, subscriptionId); dialog.dismiss(); - finish(); } }); @@ -177,6 +176,12 @@ public class SimPreferenceDialog extends Activity { @Override public void onClick(DialogInterface dialog, int whichButton) { dialog.dismiss(); + } + }); + + mBuilder.setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { finish(); } }); -- cgit v1.1