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(() -> {
while(true){
if(!displayState || CallbackBridge.isGrabbing()){
disable();
post(() -> disable());
}else {
post(() -> {
if(displayState) enable();
});
}
}
});