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

Commit e3c78ba1 authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Reduce IME navbar DeadZone by half" into main

parents 7271fd34 4147ac18
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -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.
@@ -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) {
+8 −0
Original line number Original line Diff line number Diff line
@@ -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"
}