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

Commit 076324ae authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix rounding error when drawing panel handles.

Bug: 7649037
Change-Id: If8d9fa5f3852729207c31c95cfd68ef54ff47d7d
parent bf0e106a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ import com.android.systemui.statusbar.GestureRecorder;
public class NotificationPanelView extends PanelView {

    Drawable mHandleBar;
    float mHandleBarHeight;
    int mHandleBarHeight;
    View mHandleView;
    int mFingers;
    PhoneStatusBar mStatusBar;
@@ -51,7 +51,7 @@ public class NotificationPanelView extends PanelView {

        Resources resources = getContext().getResources();
        mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
        mHandleBarHeight = resources.getDimension(R.dimen.close_handle_height);
        mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
        mHandleView = findViewById(R.id.handle);

        setContentDescription(resources.getString(R.string.accessibility_desc_notification_shade));
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ public class SettingsPanelView extends PanelView {
    private QuickSettingsContainerView mQSContainer;

    Drawable mHandleBar;
    float mHandleBarHeight;
    int mHandleBarHeight;
    View mHandleView;

    public SettingsPanelView(Context context, AttributeSet attrs) {
@@ -56,7 +56,7 @@ public class SettingsPanelView extends PanelView {

        Resources resources = getContext().getResources();
        mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
        mHandleBarHeight = resources.getDimension(R.dimen.close_handle_height);
        mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
        mHandleView = findViewById(R.id.handle);

        setContentDescription(resources.getString(R.string.accessibility_desc_quick_settings));