Try to remove screen padding by moving the setting to style file
This commit is contained in:
parent
98ad55ed4e
commit
557ba52ec7
@ -563,6 +563,7 @@ echo " <style name=\"Theme.STKSplashScreen\" parent=\"android:style/Theme.Hol
|
||||
echo " <item name=\"android:windowBackground\">#A8A8A8</item>" >> "$STYLES_FILE"
|
||||
echo " <item name=\"android:windowFullscreen\">true</item>" >> "$STYLES_FILE"
|
||||
echo " <item name=\"android:windowNoTitle\">true</item>" >> "$STYLES_FILE"
|
||||
echo " <item name=\"android:windowLayoutInDisplayCutoutMode\">shortEdges</item>" >> "$STYLES_FILE"
|
||||
echo " <item name=\"android:windowContentOverlay\">@null</item>" >> "$STYLES_FILE"
|
||||
echo " </style>" >> "$STYLES_FILE"
|
||||
echo "</resources>" >> "$STYLES_FILE"
|
||||
|
@ -261,11 +261,6 @@ public class SuperTuxKartActivity extends SDLActivity
|
||||
}
|
||||
catch(Exception e) {}
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
{
|
||||
getWindow().getAttributes().layoutInDisplayCutoutMode =
|
||||
LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
||||
}
|
||||
}
|
||||
// ------------------------------------------------------------------------
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user