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

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

Merge "Fix gear not showing on left hand side of notification" into nyc-dev

parents 0f0ffb04 8ae2c550
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -232,8 +232,9 @@ public class NotificationSettingsIconRow extends FrameLayout implements View.OnC
            return;
        }
        final boolean isRtl = mParent.isLayoutRtl();
        final float left = isRtl ? -(mParent.getWidth() - mHorizSpaceForGear) : 0;
        final float right = isRtl ? 0 : (mParent.getWidth() - mHorizSpaceForGear);
        // 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));
        setTranslationX(onLeft ? left : right);
        mOnLeft = onLeft;
    }