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

Commit bf17157b authored by KalimochoAz's avatar KalimochoAz Committed by Keyan Mobli
Browse files

Enable configure put Rotary more down to move for ldpi devices

ldpi devices are overlaying call name ID with Rotary
on input call. With this, rotary top position can be
configured more down without affecting other devices

Change-Id: I732dd06f063467fbcfd3dab60731382dca918965
parent eae76b9a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -271,7 +271,8 @@ public class RotarySelector extends View {
        mMinimumVelocity = configuration.getScaledMinimumFlingVelocity() * 2;
        mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();

        mMarginBottom = (int)(60 * mDensity * mDensityScaleFactor);
        int marginBottomDIP = context.getResources().getInteger(R.integer.config_rotaryMarginBottomDIP);
        mMarginBottom = (int)(marginBottomDIP * mDensity * mDensityScaleFactor);

        mLensePaint.setColor(Color.BLACK);
        mLensePaint.setStyle(Paint.Style.FILL_AND_STROKE);
+3 −0
Original line number Diff line number Diff line
@@ -388,4 +388,7 @@
    <!-- Enable the screen-off animation -->
    <bool name="config_enableScreenOffAnimation">true</bool>

    <!-- Configure rotary bottom margin -->
    <integer name="config_rotaryMarginBottomDIP">60</integer>

</resources>