Permalink
Browse files

flag "prefersHomeIndicatorAutoHidden" is now configurable (#5413)

* configuration: hideHomeIndicator

* controller

* configuration (robovm)

* added Overwrite
  • Loading branch information...
Tienisto authored and Tom-Ski committed Oct 19, 2018
1 parent 2932c93 commit cb016aa68c12fc1658abc35a4e01d412eda1a70a
@@ -101,6 +101,9 @@
/** whether the status bar should be visible or not **/
public boolean statusBarVisible = false;

/** whether the home indicator should be hidden or not **/
public boolean hideHomeIndicator = true;

/** Whether to override the ringer/mute switch, see https://github.com/libgdx/libgdx/issues/4430 */
public boolean overrideRingerSwitch = false;
}
@@ -107,4 +107,9 @@ public void viewDidLayoutSubviews () {
public boolean prefersStatusBarHidden() {
return !app.config.statusBarVisible;
}

@Override
public boolean prefersHomeIndicatorAutoHidden() {
return app.config.hideHomeIndicator;
}
}
@@ -99,6 +99,9 @@
* @deprecated this option is currently experimental and not yet fully supported, expect issues. */
@Deprecated public boolean useGL30 = false;

/** whether the home indicator should be hidden or not **/
public boolean hideHomeIndicator = true;

/** Whether to override the ringer/mute switch, see https://github.com/libgdx/libgdx/issues/4430 */
public boolean overrideRingerSwitch = false;

@@ -124,6 +124,11 @@ public void viewDidLayoutSubviews () {
app.listener.resize(graphics.width, graphics.height);
}
}

@Override
public boolean prefersHomeIndicatorAutoHidden() {
return app.config.hideHomeIndicator;
}

@Callback
@BindSelector("shouldAutorotateToInterfaceOrientation:")

0 comments on commit cb016aa

Please sign in to comment.