From fcff83e65cebb0c9767f076e8ccfaf6b6bfb8d95 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 23 Nov 2014 21:58:45 +0100 Subject: [PATCH] Corrected Android bug on Native Activity cycle --- src/core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core.c b/src/core.c index 1ccbb6f99..dec08eebd 100644 --- a/src/core.c +++ b/src/core.c @@ -1459,9 +1459,10 @@ static void PollInputEvents(void) // Check if we are exiting if (app->destroyRequested != 0) { - TraceLog(INFO, "Closing Window..."); - //CloseWindow(); - windowShouldClose = true; + // NOTE: Never close window, native activity is controlled by the system! + //TraceLog(INFO, "Closing Window..."); + //windowShouldClose = true; + //ANativeActivity_finish(app->activity); } }