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

Commit 2fda02b3 authored by Peter Liang's avatar Peter Liang
Browse files

Support the RTL mode of the message view.

Actions:
1) Force the menu view layer set layout direction as LTR to simplify the translation positioning and animations. Besides, the floating menu would also recover the last position when users turn it on.
2) Set the layout direction of the message view as LOCALE.

Bug: 244622119
Test: manual test
Change-Id: I5199305b1df39f88bd31307a58fd08390ec8120e
parent ee4078d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -61,6 +61,7 @@ class MenuMessageView extends LinearLayout implements
    MenuMessageView(Context context) {
    MenuMessageView(Context context) {
        super(context);
        super(context);


        setLayoutDirection(LAYOUT_DIRECTION_LOCALE);
        setVisibility(GONE);
        setVisibility(GONE);


        mTextView = new TextView(context);
        mTextView = new TextView(context);
+3 −0
Original line number Original line Diff line number Diff line
@@ -150,6 +150,9 @@ class MenuViewLayer extends FrameLayout implements
            AccessibilityManager accessibilityManager, IAccessibilityFloatingMenu floatingMenu) {
            AccessibilityManager accessibilityManager, IAccessibilityFloatingMenu floatingMenu) {
        super(context);
        super(context);


        // Simplifies the translation positioning and animations
        setLayoutDirection(LAYOUT_DIRECTION_LTR);

        mWindowManager = windowManager;
        mWindowManager = windowManager;
        mAccessibilityManager = accessibilityManager;
        mAccessibilityManager = accessibilityManager;
        mFloatingMenu = floatingMenu;
        mFloatingMenu = floatingMenu;