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

Commit 071c4545 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Revert "Fix gear not showing on left hand side of notification""

parents b5d88fb9 8875216e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -250,10 +250,12 @@ public class NotificationSettingsIconRow extends FrameLayout implements View.OnC
            return;
        }
        final boolean isRtl = mParent.isLayoutRtl();

        // TODO No need to cast to float here once b/28050538 is fixed.
        final float left = (float) (isRtl ? -(mParent.getWidth() - mHorizSpaceForGear) : 0);
        final float right = (float) (isRtl ? 0 : (mParent.getWidth() - mHorizSpaceForGear));
        final float left = isRtl
                ? -(mParent.getWidth() - mHorizSpaceForGear)
                : 0;
        final float right = isRtl
                ? 0
                : mParent.getWidth() - mHorizSpaceForGear;
        final float centerX = ((mHorizSpaceForGear - mGearIcon.getWidth()) / 2);
        setTranslationX(onLeft ? left + centerX : right + centerX);
        mOnLeft = onLeft;