I tried forcing "Full Screen" in my styles like this:
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
I tried from my activity:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
I even tried this, which makes the intent that would get called when I press on the "full screen display" button :
public static boolean goToFullScreen(final Activity activity) {
PackageManager packageManager = activity.getPackageManager();
try {
if ("huawei".equalsIgnoreCase(android.os.Build.MANUFACTURER)) {
final Intent huaweiIntent = new Intent();
huaweiIntent.setComponent(new ComponentName("com.android.systemui", "com.android.systemui.settings.HwChangeButtonActivity"));
if (huaweiIntent.resolveActivity(packageManager) != null) {
activity.startActivity(huaweiIntent);
return true;
}
}
} catch (Exception e) {
Utils.appendLog("goToBatterySettings exception:" + e.getMessage(), "E", Constants.OTHER);
}
return false;
}
But I always get this Screenshot
Any ideea how to fix this?