mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
fix(SideDialog): Didn't properly set MouseGrabSwitch state
This commit is contained in:
parent
7fe42302b6
commit
19b81e10ea
@ -99,6 +99,7 @@ public abstract class QuickSettingSideDialog extends com.kdt.SideDialogView {
|
||||
mGyroXSwitch.setChecked(mOriginalGyroXEnabled);
|
||||
mGyroYSwitch.setChecked(mOriginalGyroYEnabled);
|
||||
mGestureSwitch.setChecked(mOriginalGestureDisabled);
|
||||
mMouseGrabSwitch.setChecked(mOriginalMouseGrab);
|
||||
|
||||
mGyroSwitch.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
||||
PREF_ENABLE_GYRO = isChecked;
|
||||
@ -126,6 +127,7 @@ public abstract class QuickSettingSideDialog extends com.kdt.SideDialogView {
|
||||
});
|
||||
|
||||
mMouseGrabSwitch.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
||||
PREF_MOUSE_GRAB_FORCE = isChecked;
|
||||
mEditor.putBoolean("always_grab_mouse", isChecked);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user