implement Activity.isInMultiWindowMode()

This commit is contained in:
Julian Winkler
2024-12-20 17:32:53 +01:00
parent f9db8faebd
commit bf610d3504
3 changed files with 14 additions and 1 deletions

View File

@@ -311,3 +311,8 @@ JNIEXPORT void JNICALL Java_android_app_Activity_nativeFileChooser(JNIEnv *env,
gtk_native_dialog_show (GTK_NATIVE_DIALOG (native));
#endif
}
JNIEXPORT jboolean JNICALL Java_android_app_Activity_isInMultiWindowMode(JNIEnv *env, jobject this)
{
return !gtk_window_is_maximized(window);
}