
android-lighthouse - issue #44
Windows don't have minimized state when activity is paused
We need all top-level widgets to have minimized state when activity is not currently running. This is important to shut down some actions (a) running in non-UI threads or (b) eliminate UI repaints if UI thread is not blocked (see our patch in grym-android-lighthouse). I added the following functions to the our clone:
static void applicationActive(JNIEnv */env/, jobject /thiz/); static void applicationDeactivated(JNIEnv */env/, jobject /thiz/);
And call them from Java. But, if I actually minimize windows, I cannot un-minimize them in applicationDeactivated() for some reason. So for now I just set a boolean flag that activity is not running and check that flag via yet one more exported function, which is not a very nice solution.
Comment #1
Posted on Nov 3, 2010 by Swift RhinoI've fixed it in grym, windows are now deactivated and re-activated, also ApplicationActive and ApplicationDeactivated events are sent to QApplication.
Status: New
Labels:
Type-Defect
Priority-Medium