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

Commit 52fcd9d9 authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Fix RTL expanded media notification layout

Fixes: 127643295
Test: visual, examples at https://drive.google.com/open?id=17NoNOO3UClrw7MGfrIfFDYUPmsKJ01WI
Change-Id: I2bc2c779750a3a7c6caf64131c728a6a5567a663
parent 4808233a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -126,6 +126,9 @@ public class MediaNotificationView extends FrameLayout {
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        if (mImagePushIn > 0) {
            if (this.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {
                mImagePushIn *= -1;
            }
            mRightIcon.layout(mRightIcon.getLeft() + mImagePushIn, mRightIcon.getTop(),
                    mRightIcon.getRight()  + mImagePushIn, mRightIcon.getBottom());
        }
+2 −2
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:gravity="left"
            android:gravity="start"
        />

        <TextView android:id="@+id/notification_media_total_time"
@@ -59,7 +59,7 @@
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:gravity="right"
            android:gravity="end"
        />
    </FrameLayout>
</LinearLayout>
 No newline at end of file