v3.2.2: improved fullscreen option eligibility on Android
This commit is contained in:
@@ -28,21 +28,6 @@ import com.watabou.noosa.Game;
|
||||
|
||||
//TODO migrate to platformSupport class
|
||||
public class DeviceCompat {
|
||||
|
||||
public static boolean supportsFullScreen(){
|
||||
switch (Gdx.app.getType()){
|
||||
case Android:
|
||||
//TODO perhaps have this vary based on status bar type?
|
||||
return true;
|
||||
case iOS:
|
||||
//iOS supports hiding UI via drawing into the gesture safe area
|
||||
return Gdx.graphics.getSafeInsetBottom() != 0;
|
||||
case Desktop:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//return APi level on Android, major OS version on iOS, 0 on desktop
|
||||
public static int getPlatformVersion(){
|
||||
|
||||
@@ -34,6 +34,10 @@ import java.util.HashMap;
|
||||
public abstract class PlatformSupport {
|
||||
|
||||
public abstract void updateDisplaySize();
|
||||
|
||||
public boolean supportsFullScreen(){
|
||||
return true; //default
|
||||
}
|
||||
|
||||
public abstract void updateSystemUI();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user