auto-hide home indicator

This commit is contained in:
Jesús A. Álvarez 2024-03-01 22:49:04 +01:00
parent 2dab9cca28
commit 65d377884b

View File

@ -161,6 +161,10 @@ static int8_t usb_to_adb_scancode[] = {
[[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"trackpad"]; [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"trackpad"];
} }
- (BOOL)prefersHomeIndicatorAutoHidden {
return YES;
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (motion == UIEventSubtypeMotionShake) { if (motion == UIEventSubtypeMotionShake) {
[[AppDelegate sharedInstance] showInsertDisk:self]; [[AppDelegate sharedInstance] showInsertDisk:self];