Fixed navigation bar not being entirely hidden.

This commit is contained in:
acsbendi 2019-02-10 19:17:55 +01:00 committed by Lukas Dürrenberger
parent ca21695521
commit ea71dd2fe0

View File

@ -175,7 +175,7 @@ void goToFullscreenMode(ANativeActivity* activity)
// API Level 14 // API Level 14
if (apiLevel >= 14) if (apiLevel >= 14)
{ {
jfieldID FieldSYSTEM_UI_FLAG_LOW_PROFILE = lJNIEnv->GetStaticFieldID(classView, "SYSTEM_UI_FLAG_LOW_PROFILE", "I"); jfieldID FieldSYSTEM_UI_FLAG_LOW_PROFILE = lJNIEnv->GetStaticFieldID(classView, "SYSTEM_UI_FLAG_HIDE_NAVIGATION", "I");
jint SYSTEM_UI_FLAG_LOW_PROFILE = lJNIEnv->GetStaticIntField(classView, FieldSYSTEM_UI_FLAG_LOW_PROFILE); jint SYSTEM_UI_FLAG_LOW_PROFILE = lJNIEnv->GetStaticIntField(classView, FieldSYSTEM_UI_FLAG_LOW_PROFILE);
flags |= SYSTEM_UI_FLAG_LOW_PROFILE; flags |= SYSTEM_UI_FLAG_LOW_PROFILE;
} }