diff options
-rw-r--r-- | backends/platform/android/jni.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/backends/platform/android/jni.cpp b/backends/platform/android/jni.cpp index 9ecd9577e7..175973079f 100644 --- a/backends/platform/android/jni.cpp +++ b/backends/platform/android/jni.cpp @@ -629,12 +629,10 @@ void JNI::pauseEngine(JNIEnv *env, jobject self, jboolean value) { if (!_system) return; - if (g_engine) - if ((value && !g_engine->isPaused()) || - (!value && g_engine->isPaused())) { - LOGD("pauseEngine: %d", value); - g_engine->pauseEngine(value); - } + if (g_engine) { + LOGD("pauseEngine: %d", value); + g_engine->pauseEngine(value); + } pause = value; |