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

Commit 50def21a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix position of task menu in RTL" into ub-launcher3-master

parents 180f7770 0d00e52b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAnimUtils;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.anim.AnimationSuccessListener;
import com.android.launcher3.anim.RoundedRectRevealOutlineProvider;
import com.android.launcher3.dragndrop.DragLayer;
@@ -170,7 +171,8 @@ public class TaskMenuView extends AbstractFloatingView {
        measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
        mLauncher.getDragLayer().getDescendantRectRelativeToSelf(taskView, sTempRect);
        Rect insets = mLauncher.getDragLayer().getInsets();
        setX(sTempRect.left + (sTempRect.width() - getMeasuredWidth()) / 2 - insets.left);
        int x = sTempRect.left + (sTempRect.width() - getMeasuredWidth()) / 2 - insets.left;
        setX(Utilities.isRtl(getResources()) ? -x : x);
        setY(sTempRect.top - mTaskIconAndName.getPaddingTop() - insets.top);
    }