Merge "Do not create highlight if track width is invalid" into pi-dev

am: ed60140a93

Change-Id: I1fc23d1edd74b8aa0368da397bbdb84bac361da3
This commit is contained in:
Matthew Ng
2018-06-28 10:37:50 -07:00
committed by android-build-merger

View File

@@ -501,6 +501,9 @@ public class QuickStepController implements GestureHelper {
} }
private void updateHighlight() { private void updateHighlight() {
if (mTrackRect.isEmpty()) {
return;
}
int colorBase, colorGrad; int colorBase, colorGrad;
if (mDarkIntensity > 0.5f) { if (mDarkIntensity > 0.5f) {
colorBase = mContext.getColor(R.color.quick_step_track_background_background_dark); colorBase = mContext.getColor(R.color.quick_step_track_background_background_dark);