Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24a3ff95 authored by Grace Kloba's avatar Grace Kloba
Browse files

Change double tap toast to long toast.

Change toast count to static to cross all the windows.

It should be --count instead of count--.
parent 194099dc
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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);
        if (mDoubleTapToastCount > 0) {
            mDoubleTapToastCount = sp.getInt(DOUBLE_TAP_TOAST_COUNT,
                    mDoubleTapToastCount);
        }
        nativeSync(frame.mNativeFrame);
        mSyncPending = false;
        mEventHandler.createHandler();
+2 −2
Original line number Diff line number Diff line
@@ -3772,10 +3772,10 @@ public class WebView extends AbsoluteLayout
                        mZoomButtonsController.setVisible(true);
                        int count = settings.getDoubleTapToastCount();
                        if (mInZoomOverview && count > 0) {
                            settings.setDoubleTapToastCount(count--);
                            settings.setDoubleTapToastCount(--count);
                            Toast.makeText(mContext,
                                    com.android.internal.R.string.double_tap_toast,
                                    Toast.LENGTH_SHORT).show();
                                    Toast.LENGTH_LONG).show();
                        }
                    }
                }