Fix touchpad mouse crash

This commit is contained in:
SerpentSpirale 2021-11-23 09:58:42 +01:00 committed by Boulay Mathias
parent 4a3a046e95
commit 3a6c8cf893

View File

@ -78,9 +78,13 @@ public class Touchpad extends FrameLayout {
Thread isGrabbingThread = new Thread(() -> { Thread isGrabbingThread = new Thread(() -> {
while(true){ while(true){
if(!displayState || CallbackBridge.isGrabbing()){ if(!displayState || CallbackBridge.isGrabbing()){
disable(); post(() -> disable());
}else { }else {
post(() -> {
if(displayState) enable(); if(displayState) enable();
});
} }
} }
}); });