From 52d6e93bdc64279cc2a0b3714cb7e9fae8097487 Mon Sep 17 00:00:00 2001 From: Deve Date: Fri, 27 Jul 2018 20:55:31 +0200 Subject: [PATCH] Hide navbar only for android >= 4.4. --- lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp index 39b660112..2996890dc 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp @@ -1150,6 +1150,12 @@ void CIrrDeviceAndroid::getKeyChar(SEvent& event) void CIrrDeviceAndroid::hideNavBar(ANativeActivity* activity) { + if (activity == NULL) + return; + + if (activity->sdkVersion < 19) + return; + bool was_detached = false; JNIEnv* env = NULL;