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

Commit 908111d2 authored by Matthew Ng's avatar Matthew Ng
Browse files

Do not create highlight if track width is invalid

Test: change display font size
Change-Id: I29b97dee07d39b1b1efd4871b625a859d7fa2e09
Fixes: 110814530
parent 70a9f39e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -501,6 +501,9 @@ public class QuickStepController implements GestureHelper {
    }

    private void updateHighlight() {
        if (mTrackRect.isEmpty()) {
            return;
        }
        int colorBase, colorGrad;
        if (mDarkIntensity > 0.5f) {
            colorBase = mContext.getColor(R.color.quick_step_track_background_background_dark);