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

Commit e970c5c0 authored by Beth Thibodeau's avatar Beth Thibodeau Committed by Android (Google) Code Review
Browse files

Merge "Fix RTL expanded media notification layout"

parents 789635b6 52fcd9d9
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