mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-05-24 01:44:38 -04:00
Fix touchpad mouse crash
This commit is contained in:
committed by
Boulay Mathias
parent
4a3a046e95
commit
3a6c8cf893
@@ -78,9 +78,13 @@ public class Touchpad extends FrameLayout {
|
||||
Thread isGrabbingThread = new Thread(() -> {
|
||||
while(true){
|
||||
if(!displayState || CallbackBridge.isGrabbing()){
|
||||
disable();
|
||||
post(() -> disable());
|
||||
|
||||
}else {
|
||||
if(displayState) enable();
|
||||
post(() -> {
|
||||
if(displayState) enable();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user