mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Draw the highlight border after the element so it doesn't get drawn over
This commit is contained in:
parent
b8a0a823e0
commit
250475830f
@ -71,6 +71,8 @@ public abstract class VirtualControllerElement extends View {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(Canvas canvas) {
|
protected void onDraw(Canvas canvas) {
|
||||||
|
onElementDraw(canvas);
|
||||||
|
|
||||||
if (virtualController.getControllerMode() == VirtualController.ControllerMode.
|
if (virtualController.getControllerMode() == VirtualController.ControllerMode.
|
||||||
Configuration) {
|
Configuration) {
|
||||||
paint.setColor(pressedColor);
|
paint.setColor(pressedColor);
|
||||||
@ -82,8 +84,6 @@ public abstract class VirtualControllerElement extends View {
|
|||||||
paint);
|
paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
onElementDraw(canvas);
|
|
||||||
|
|
||||||
super.onDraw(canvas);
|
super.onDraw(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user