Merge "Don't create new nav bar layer when IME is rendering nav buttons"

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2022-01-25 20:17:43 +00:00
commit c4f2560b0f
2 files changed
+10

No files matched your search

@@ -48,6 +48,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;
@@ -591,6 +592,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
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) {