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

Commit cdff2db6 authored by xuejianbao's avatar xuejianbao
Browse files

Fix color mismatch of pointers



When drawing a point, it should be used the same index for coordinates and state.

Test: make
Signed-off-by: default avatarxuejianbao <xuejianbao@xiaomi.com>
Change-Id: I6d66e52b029d7b08663f62ab46125230b7f9a7c5
parent 1371e738
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -371,7 +371,7 @@ public class PointerLocationView extends View implements InputDeviceListener,
                }
                if (haveLast) {
                    canvas.drawLine(lastX, lastY, x, y, mPathPaint);
                    final Paint paint = ps.mTraceCurrent[i] ? mCurrentPointPaint : mPaint;
                    final Paint paint = ps.mTraceCurrent[i - 1] ? mCurrentPointPaint : mPaint;
                    canvas.drawPoint(lastX, lastY, paint);
                    drawn = true;
                }