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

Commit 8ae2c550 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix gear not showing on left hand side of notification

This is a work around for b/28050538, casting these values to
floats should be unnecessary. Once this bug is fixed this can
be reverted.

Bug: 28029191
Change-Id: I5c3efe9e01dbac4e9f30753a88a4fe59cb13e7e7
parent 6f3934ea
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;
    }