mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-07-04 23:28:58 +00:00
Misc fixes for Android portrait/landscape mode settings
This commit is contained in:
parent
fccd2629d4
commit
89d12ce29d
@ -119,6 +119,8 @@ public class Apple2Activity extends Activity {
|
|||||||
setContentView(new View(this));
|
setContentView(new View(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Apple2Preferences.LANDSCAPE_MODE.load(this);
|
||||||
|
|
||||||
Apple2CrashHandler.getInstance().initializeAndSetCustomExceptionHandler(this);
|
Apple2CrashHandler.getInstance().initializeAndSetCustomExceptionHandler(this);
|
||||||
if (sNativeBarfed) {
|
if (sNativeBarfed) {
|
||||||
Log.e(TAG, "NATIVE BARFED...", sNativeBarfedThrowable);
|
Log.e(TAG, "NATIVE BARFED...", sNativeBarfedThrowable);
|
||||||
@ -265,6 +267,7 @@ public class Apple2Activity extends Activity {
|
|||||||
// Dismiss these popups to avoid android.view.WindowLeaked issues
|
// Dismiss these popups to avoid android.view.WindowLeaked issues
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
dismissAllMenus();
|
dismissAllMenus();
|
||||||
|
dismissAllMenus(); // 2nd time should full exit calibration mode (if present)
|
||||||
nativeEmulationPause();
|
nativeEmulationPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,11 @@ public class Apple2VideoSettingsMenu extends Apple2AbstractMenu {
|
|||||||
if (position < 0 || position >= SETTINGS.size) {
|
if (position < 0 || position >= SETTINGS.size) {
|
||||||
throw new ArrayIndexOutOfBoundsException();
|
throw new ArrayIndexOutOfBoundsException();
|
||||||
}
|
}
|
||||||
|
if (position == SETTINGS.PORTRAIT_CALIBRATE.ordinal()) {
|
||||||
|
if (Apple2Preferences.LANDSCAPE_MODE.booleanValue(mActivity)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user