move startActivity function to Context class

This way it can also be called on Application Context
This commit is contained in:
Julian Winkler
2023-09-19 23:09:58 +02:00
parent 55a1ff2cc5
commit 299a474aa0
4 changed files with 27 additions and 28 deletions

View File

@@ -347,7 +347,7 @@ static void open(GtkApplication *app, GFile** files, gint nfiles, const gchar* h
// construct Application
application_object = (*env)->CallStaticObjectMethod(env, handle_cache.context.class,
_STATIC_METHOD(handle_cache.context.class, "createApplication", "()Landroid/app/Application;"));
_STATIC_METHOD(handle_cache.context.class, "createApplication", "(J)Landroid/app/Application;"), window);
if((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env);