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

Commit 59492add authored by Scott Brady's avatar Scott Brady
Browse files

Fix for secondary ring layout in landscape

In landscape the secondary rings are squished
to fill half of the height instead of the full
height.  This fix adjusts the spacing to use
the full height of the screen.

Change-Id: I8fa76470d56a8c347680c1c2eb4f2cb63ec88733
parent c4e23b1c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -644,7 +644,7 @@ public class RingSelector extends ViewGroup {
                    alignCenterY -= mSecRingCenterOffset;
                    alignCenterY -= mSecRingCenterOffset;
                }
                }
            } else if (orientation == VERTICAL) {
            } else if (orientation == VERTICAL) {
                int spacing = parentHeight / (2 * totalRings);
                int spacing = parentHeight / totalRings;
                alignCenterX = parentWidth - mSecRingBottomOffset - mBottomOffset;
                alignCenterX = parentWidth - mSecRingBottomOffset - mBottomOffset;
                alignCenterY = parentHeight - (spacing / 2 + ringNum * spacing); //align on evenly-spaced horizontals
                alignCenterY = parentHeight - (spacing / 2 + ringNum * spacing); //align on evenly-spaced horizontals