diff options
author | Danesh M <daneshm90@gmail.com> | 2016-01-28 13:35:03 -0800 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2016-01-28 13:38:31 -0800 |
commit | 62d50cc0b38fd8154e7a40da7f35f0d1ba031d12 (patch) | |
tree | a00f13987e46d2d8fd2b7b8b7435eb0854950fee | |
parent | 5895648eb44b3d18180888bf6f1eb5ba3caa5c97 (diff) | |
download | packages_apps_Settings-62d50cc0b38fd8154e7a40da7f35f0d1ba031d12.zip packages_apps_Settings-62d50cc0b38fd8154e7a40da7f35f0d1ba031d12.tar.gz packages_apps_Settings-62d50cc0b38fd8154e7a40da7f35f0d1ba031d12.tar.bz2 |
Settings : Finish SimPreferenceDialog on dismiss
CYNGNOS-1515
Change-Id: I2f69a876419a0ace61a6a8e682496db0d62bbfa1
-rw-r--r-- | src/com/android/settings/sim/SimPreferenceDialog.java | 7 |
1 files changed, 6 insertions, 1 deletions
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(); } }); |