summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-06-21 17:56:27 +0100
committerBen Murdoch <benm@google.com>2011-06-21 17:56:27 +0100
commit0d63c5d5621b47d95726b5b8ae381f09ef814296 (patch)
tree3ab3450d8d3eafbba38194b393ceadcc20b42258 /src/com
parent31f84e38ef01ea28ec3b19e72212b0fdf707181c (diff)
downloadpackages_apps_Browser-0d63c5d5621b47d95726b5b8ae381f09ef814296.zip
packages_apps_Browser-0d63c5d5621b47d95726b5b8ae381f09ef814296.tar.gz
packages_apps_Browser-0d63c5d5621b47d95726b5b8ae381f09ef814296.tar.bz2
Only close the AutoFill editor when we're actually done with it
We need the activity to still be alive when the PROFILE_SAVED callback occurs so that we can get the context to display the toast. So don't close the editor until we've shown the toast. Bug: 4615099 Change-Id: I61fee12258193815efb999c576309fef9ac33d23
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/AutoFillSettingsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/AutoFillSettingsFragment.java b/src/com/android/browser/AutoFillSettingsFragment.java
index b282789..141de34 100644
--- a/src/com/android/browser/AutoFillSettingsFragment.java
+++ b/src/com/android/browser/AutoFillSettingsFragment.java
@@ -120,6 +120,7 @@ public class AutoFillSettingsFragment extends Fragment {
case PROFILE_SAVED_MSG:
Toast.makeText(getActivity(), R.string.autofill_profile_successful_save,
Toast.LENGTH_SHORT).show();
+ closeEditor();
break;
case PROFILE_DELETED_MSG:
@@ -215,7 +216,6 @@ public class AutoFillSettingsFragment extends Fragment {
mSettings.setAutoFillProfile(newProfile,
mHandler.obtainMessage(PROFILE_SAVED_MSG));
- closeEditor();
}
});