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

Commit 4ef2f335 authored by Winson's avatar Winson Committed by android-build-merger
Browse files

Fixing RTL issues with transition and screen pinning. am: 96f78f50 am: 9ae8d476

am: 14fa6c28

Change-Id: Ib85ef1245ddacfd5f7055e1acb254f4ee3be4e16
parents 924423ce 14fa6c28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@
        android:id="@+id/lock_to_app_fab"
        android:layout_width="@dimen/recents_lock_to_app_size"
        android:layout_height="@dimen/recents_lock_to_app_size"
        android:layout_gravity="bottom|right"
        android:layout_marginRight="15dp"
        android:layout_gravity="bottom|end"
        android:layout_marginEnd="15dp"
        android:layout_marginBottom="15dp"
        android:translationZ="4dp"
        android:contentDescription="@string/recents_lock_to_app_button_label"
+9 −0
Original line number Diff line number Diff line
@@ -206,9 +206,17 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
    }

    public void onConfigurationChanged() {
        Resources res = mContext.getResources();
        reloadResources();
        mDummyStackView.reloadOnConfigurationChange();
        // Update the header bar direction directly as it is not attached to anything and does not
        // layout except in updateHeaderBarLayout()
        mHeaderBar.setLayoutDirection(res.getConfiguration().getLayoutDirection());
        mHeaderBar.onConfigurationChanged();
        mHeaderBar.forceLayout();
        mHeaderBar.measure(
                MeasureSpec.makeMeasureSpec(mHeaderBar.getMeasuredWidth(), MeasureSpec.EXACTLY),
                MeasureSpec.makeMeasureSpec(mHeaderBar.getMeasuredHeight(), MeasureSpec.EXACTLY));
    }

    /**
@@ -629,6 +637,7 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
                synchronized (mHeaderBarLock) {
                    if (mHeaderBar.getMeasuredWidth() != taskViewWidth ||
                            mHeaderBar.getMeasuredHeight() != mTaskBarHeight) {
                        mHeaderBar.forceLayout();
                        mHeaderBar.measure(
                                MeasureSpec.makeMeasureSpec(taskViewWidth, MeasureSpec.EXACTLY),
                                MeasureSpec.makeMeasureSpec(mTaskBarHeight, MeasureSpec.EXACTLY));