mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 22:43:05 +00:00
Cancel a pending drag timer before setting a new one
This commit is contained in:
parent
cc183c0da8
commit
45436c006f
@ -147,6 +147,9 @@ public class RelativeTouchContext implements TouchContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void startDragTimer() {
|
private synchronized void startDragTimer() {
|
||||||
|
// Cancel any existing drag timers
|
||||||
|
cancelDragTimer();
|
||||||
|
|
||||||
dragTimer = new Timer(true);
|
dragTimer = new Timer(true);
|
||||||
dragTimer.schedule(new TimerTask() {
|
dragTimer.schedule(new TimerTask() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user