Skip to content

Commit a4f830f

Browse files
author
Sergii Pylypenko
committed
SDL: fixed Play Store warning
1 parent ba52aa1 commit a4f830f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

project/java/MainActivity.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Java source code (C) 2009-2014 Sergii Pylypenko
105105
import java.util.ArrayList;
106106
import android.os.Environment;
107107
import android.net.Uri;
108+
import androidx.core.view.WindowCompat;
108109

109110

110111
public class MainActivity extends Activity
@@ -1590,7 +1591,12 @@ public static void dim(final View view, final Window window)
15901591
{
15911592
// Immersive mode, I already hear curses when system bar reappears mid-game from the slightest swipe at the bottom of the screen
15921593
//Log.i("SDL", "libSDL: Enabling fullscreen, Android SDK " + android.os.Build.VERSION.SDK_INT + " VERSION_CODES.P " + android.os.Build.VERSION_CODES.P);
1593-
if( android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P )
1594+
if( android.os.Build.VERSION.SDK_INT >= 35 )
1595+
{
1596+
if (!Globals.DrawInDisplayCutout)
1597+
WindowCompat.setDecorFitsSystemWindows(window, true);
1598+
}
1599+
else if( android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P )
15941600
{
15951601
//Log.i("SDL", "libSDL: Setting display cutout mode to SHORT_EDGES");
15961602
if (Globals.DrawInDisplayCutout)

project/jni/application/xserver/AndroidAppSettings.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ AppName="XServer XSDL"
77
AppFullName=x.org.server
88

99
# Application version code (integer)
10-
AppVersionCode=12054
10+
AppVersionCode=12055
1111

1212
# Application user-visible version name (string)
13-
AppVersionName="1.20.54"
13+
AppVersionName="1.20.55"
1414

1515
# Specify path to download application data in zip archive in the form "Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
1616
# If you'll start Description with '!' symbol it will be enabled by default, '!!' will also hide the entry from the menu, so it cannot be disabled

0 commit comments

Comments
 (0)