diff options
author | Grace Kloba <klobag@google.com> | 2009-09-22 10:42:22 -0700 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2009-09-22 11:11:01 -0700 |
commit | 24a3ff958b87550904a71961835f6883d1411c27 (patch) | |
tree | 209b9765dca0aef20caee52893f7817b3376d1a6 /core/java/android/webkit/WebSettings.java | |
parent | 194099dc4f614130f3baff14850792e6dc3fa59b (diff) | |
download | frameworks_base-24a3ff958b87550904a71961835f6883d1411c27.zip frameworks_base-24a3ff958b87550904a71961835f6883d1411c27.tar.gz frameworks_base-24a3ff958b87550904a71961835f6883d1411c27.tar.bz2 |
Change double tap toast to long toast.
Change toast count to static to cross all the windows.
It should be --count instead of count--.
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
-rw-r--r-- | core/java/android/webkit/WebSettings.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 3c43fd1..5f6a734 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -195,7 +195,7 @@ public class WebSettings { static GoogleLocationSettingManager sGoogleLocationSettingManager; // private WebSettings, not accessible by the host activity - private int mDoubleTapToastCount = 3; + static private int mDoubleTapToastCount = 3; private static final String PREF_FILE = "WebViewSettings"; private static final String DOUBLE_TAP_TOAST_COUNT = "double_tap_toast_count"; @@ -1357,8 +1357,10 @@ public class WebSettings { sGoogleLocationSettingManager.start(); SharedPreferences sp = mContext.getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); - mDoubleTapToastCount = sp.getInt(DOUBLE_TAP_TOAST_COUNT, - mDoubleTapToastCount); + if (mDoubleTapToastCount > 0) { + mDoubleTapToastCount = sp.getInt(DOUBLE_TAP_TOAST_COUNT, + mDoubleTapToastCount); + } nativeSync(frame.mNativeFrame); mSyncPending = false; mEventHandler.createHandler(); |