summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/wifi/WifiSettings.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index 61093e6..9c3f07f 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -332,6 +332,7 @@ public class WifiSettings extends SettingsPreferenceFragment
activity.getSystemService(Context.CONNECTIVITY_SERVICE);
if (connectivity != null
&& connectivity.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected()) {
+ activity.setResult(Activity.RESULT_OK);
activity.finish();
return;
}
@@ -837,6 +838,7 @@ public class WifiSettings extends SettingsPreferenceFragment
if (mAutoFinishOnConnection && info.isConnected()) {
Activity activity = getActivity();
if (activity != null) {
+ activity.setResult(Activity.RESULT_OK);
activity.finish();
}
return;