Fix Android 10 resource sync and fullscreen; record Global ROM comparison
This commit is contained in:
@@ -214,6 +214,11 @@ public class MainActivity extends SDLActivity {
|
||||
}
|
||||
|
||||
private void applyImmersiveMode() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||
final WindowManager.LayoutParams attributes = getWindow().getAttributes();
|
||||
attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
||||
getWindow().setAttributes(attributes);
|
||||
}
|
||||
final View decor = getWindow().getDecorView();
|
||||
decor.setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |
|
||||
|
||||
Reference in New Issue
Block a user