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

Commit 103d48ec authored by Abodunrinwa Toki's avatar Abodunrinwa Toki
Browse files

Change FloatingToolbar window layout type.

Floating toolbar is now rendered as TYPE_APPLICATION_ABOVE_SUB_PANEL.
This causes the FloatingToolbar to be rendered in a layer above
the text selection handles (at layer TYPE_APPLICATION_SUB_PANEL.)

Bug: 20135562
Change-Id: I1484b3493bf4cd98c679eb222270c53daa46cdf4
parent 4598c375
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1070,7 +1070,8 @@ public final class FloatingToolbar {
    private static PopupWindow createPopupWindow(View content) {
        ViewGroup popupContentHolder = new LinearLayout(content.getContext());
        PopupWindow popupWindow = new PopupWindow(popupContentHolder);
        popupWindow.setWindowLayoutType(WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL);
        popupWindow.setWindowLayoutType(
                WindowManager.LayoutParams.TYPE_APPLICATION_ABOVE_SUB_PANEL);
        popupWindow.setAnimationStyle(0);
        popupWindow.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        content.setLayoutParams(new ViewGroup.LayoutParams(