mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Don't create new nav bar layer when IME is rendering nav buttons
Test: Edit folder name in taskbar, ensure we don't create a new window Fixes: 214571910 Change-Id: I9a1385dbed2df7a4ee141485c8bbfb521457d853
This commit is contained in:
@@ -52,6 +52,7 @@ import android.graphics.Region;
|
||||
import android.graphics.Region.Op;
|
||||
import android.graphics.drawable.AnimatedVectorDrawable;
|
||||
import android.graphics.drawable.PaintDrawable;
|
||||
import android.inputmethodservice.InputMethodService;
|
||||
import android.util.Property;
|
||||
import android.view.Gravity;
|
||||
import android.view.MotionEvent;
|
||||
@@ -602,6 +603,11 @@ public class NavbarButtonsViewController {
|
||||
return;
|
||||
}
|
||||
|
||||
if (InputMethodService.canImeRenderGesturalNavButtons() && mContext.isGestureNav()) {
|
||||
// IME is rendering the nav buttons, so we don't need to create a new layer for them.
|
||||
return;
|
||||
}
|
||||
|
||||
mSeparateWindowParent.addOnAttachStateChangeListener(new OnAttachStateChangeListener() {
|
||||
@Override
|
||||
public void onViewAttachedToWindow(View view) {
|
||||
|
||||
Reference in New Issue
Block a user