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

Commit dec17299 authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix switch text position when thumb is null

Change-Id: I05a107423fabf5a538258cf0562e0916c8be18b6
parent 77cbcb66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -936,7 +936,7 @@ public class Switch extends CompoundButton {
                final Rect bounds = thumbDrawable.getBounds();
                cX = bounds.left + bounds.right;
            } else {
                cX = getWidth() / 2;
                cX = getWidth();
            }

            final int left = cX / 2 - switchText.getWidth() / 2;