Merge "Correct the position of the marker for audio adjustment." into sc-v2-dev
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
package com.android.settings.accessibility;
|
package com.android.settings.accessibility;
|
||||||
|
|
||||||
import static android.view.HapticFeedbackConstants.CLOCK_TICK;
|
import static android.view.HapticFeedbackConstants.CLOCK_TICK;
|
||||||
|
|
||||||
import static com.android.settings.Utils.isNightMode;
|
import static com.android.settings.Utils.isNightMode;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -154,7 +155,7 @@ public class BalanceSeekBar extends SeekBar {
|
|||||||
// Draw a vertical line at 50% that represents centred balance
|
// Draw a vertical line at 50% that represents centred balance
|
||||||
int seekBarCenter = (canvas.getHeight() - getPaddingBottom()) / 2;
|
int seekBarCenter = (canvas.getHeight() - getPaddingBottom()) / 2;
|
||||||
canvas.save();
|
canvas.save();
|
||||||
canvas.translate((canvas.getWidth() - mCenterMarkerRect.right) / 2,
|
canvas.translate((canvas.getWidth() - mCenterMarkerRect.right - getPaddingEnd()) / 2,
|
||||||
seekBarCenter - (mCenterMarkerRect.bottom / 2));
|
seekBarCenter - (mCenterMarkerRect.bottom / 2));
|
||||||
canvas.drawRect(mCenterMarkerRect, mCenterMarkerPaint);
|
canvas.drawRect(mCenterMarkerRect, mCenterMarkerPaint);
|
||||||
canvas.restore();
|
canvas.restore();
|
||||||
|
Reference in New Issue
Block a user