Loading core/java/android/inputmethodservice/navigationbar/DeadZone.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.util.FloatProperty; import android.util.Log; import android.util.Log; import android.view.MotionEvent; import android.view.MotionEvent; import android.view.Surface; import android.view.Surface; import android.view.inputmethod.Flags; /** /** * The "dead zone" consumes unintentional taps along the top edge of the navigation bar. * The "dead zone" consumes unintentional taps along the top edge of the navigation bar. Loading Loading @@ -119,6 +120,10 @@ final class DeadZone { mSizeMin = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE, res); mSizeMin = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE, res); mSizeMax = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE_MAX, res); mSizeMax = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE_MAX, res); if (Flags.fixNavbarDeadzone()) { mSizeMax = mSizeMax / 2; mSizeMin = mSizeMin / 2; } mVertical = (res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE); mVertical = (res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE); if (DEBUG) { if (DEBUG) { Loading core/java/android/view/inputmethod/flags.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -221,3 +221,11 @@ flag { description: "Deprecate unsupported show/hide flags." description: "Deprecate unsupported show/hide flags." bug: "322992891" bug: "322992891" } } flag { name: "fix_navbar_deadzone" namespace: "input_method" description: "Reduce DeadZone for navbar" bug: "364856257" } Loading
core/java/android/inputmethodservice/navigationbar/DeadZone.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.util.FloatProperty; import android.util.Log; import android.util.Log; import android.view.MotionEvent; import android.view.MotionEvent; import android.view.Surface; import android.view.Surface; import android.view.inputmethod.Flags; /** /** * The "dead zone" consumes unintentional taps along the top edge of the navigation bar. * The "dead zone" consumes unintentional taps along the top edge of the navigation bar. Loading Loading @@ -119,6 +120,10 @@ final class DeadZone { mSizeMin = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE, res); mSizeMin = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE, res); mSizeMax = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE_MAX, res); mSizeMax = dpToPx(NAVIGATION_BAR_DEADZONE_SIZE_MAX, res); if (Flags.fixNavbarDeadzone()) { mSizeMax = mSizeMax / 2; mSizeMin = mSizeMin / 2; } mVertical = (res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE); mVertical = (res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE); if (DEBUG) { if (DEBUG) { Loading
core/java/android/view/inputmethod/flags.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -221,3 +221,11 @@ flag { description: "Deprecate unsupported show/hide flags." description: "Deprecate unsupported show/hide flags." bug: "322992891" bug: "322992891" } } flag { name: "fix_navbar_deadzone" namespace: "input_method" description: "Reduce DeadZone for navbar" bug: "364856257" }