Commit Graph

333 Commits

Author SHA1 Message Date
Daniel Panero
5f6943fd81 Add backbutton 2024-11-17 23:37:10 +00:00
Julian Winkler
4b36bca4c6 refactor SurfaceViewWidget for frame_callback in the Wayland server
SurfaceViewWidget is now always a child of a GtkGraphicsOffload and
handles the GdkTexture on its own. This way the extra GtkPicture is no
longer needed and also the frame_callback of the Wayland server can be
implemented.
2024-11-17 17:11:14 +01:00
Julian Winkler
1fb5be92dc fix build with libportal < 0.8 2024-11-13 23:02:55 +01:00
Julian Winkler
5160c33b62 MediaCodec: don't double reference hw_decice_ctx 2024-11-06 23:32:40 +01:00
Julian Winkler
7c9a32d041 MediaCodec: release all output buffers on release
This prevents leaking video memory
2024-11-06 23:32:39 +01:00
Julian Winkler
fc0091a989 use Activity title as window title 2024-11-03 08:26:11 +01:00
Julian Winkler
6dfd0d1d4b use XDG-Portal to detect night mode
Get dark mode property directly from XDG portal instead of extracting it
from the GTK theme. Also we pass the value to GTK, which would normaly
be done by libadwaita.

This also has the advantage, that we can switch the theme at runtime.
but for now the change will only affect newly created Activities.
2024-11-01 23:23:58 +01:00
Julian Winkler
6068ac2eb8 View.setSystemUiVisibility(): implement fullscreen
For now we only allow fullscreen for maximized windows
2024-10-31 20:30:15 +01:00
Julian Winkler
d79df985c7 Drawable: don't force aspect ratio 2024-10-23 16:38:01 +02:00
Markuss Broks
5eb750b253 GLImpl: more implementations 2024-10-14 19:59:49 +03:00
Markuss Broks
24fab49a1c api-impl: misc stubs 2024-10-14 19:59:38 +03:00
Julian Winkler
ab07fc11da EditText.setOnEditorActionListener(): disconnect old listener 2024-10-07 11:55:33 +02:00
Julian Winkler
3905184aee AssetManager.loadThemeAttributeValue(): don't return attributeId as resourceId
If the value has no resourceId, it should be resourceId=0 instead of
setting it to the attributeId.
2024-10-07 11:55:33 +02:00
Julian Winkler
0d5150083a remove spacial handling for Activity.recreateActivity()
This prevents the onStart() method being called twice for the toplevel
Activity.
2024-10-07 11:55:33 +02:00
Julian Winkler
1b46d728e3 implement Activity.onPostCreate() and onPostResume()
These are used by androidx to handle the Fragment lifecycle
2024-10-05 22:45:17 +02:00
Julian Winkler
21a75d7ff0 WebView: use Asset_read() instead of Asset_openFileDescriptor()
openFileDescriptor doesn't work for assets which are compressed inside
the APK.
2024-10-05 10:26:50 +02:00
Julian Winkler
9f728c77f9 MPRIS: use org.mpris.MediaPlayer2.app_id as bus_name
The bus name must be unique per application. Also sandboxed applications
are not allowed to use bus names without the application id.
2024-10-04 19:08:54 +02:00
Julian Winkler
4f4fd15fef WebView: implement WebViewClient callbacks 2024-10-04 15:23:34 +02:00
Julian Winkler
633f1e6f96 WebView: implement file:///android_asset/... URIs 2024-10-04 15:23:34 +02:00
Julian Winkler
dc4b40bdf4 WebView.loadDataWithBaseURL(): handle mimeType=null 2024-10-04 15:23:34 +02:00
Julian Winkler
14eae15178 ListView: implement setSelection() and scrollTo() 2024-10-03 15:57:44 +02:00
Julian Winkler
f3092fd4bd implement file sharing by file descriptor
Using custom gdbus code, as libportal doesn't expose the raw
org.freedesktop.portal.OpenURI.OpenFile method.
2024-10-03 15:57:44 +02:00
Julian Winkler
c492e1f03f add Java APIs needed for WhatsApp MainActivity and ConversationActivity 2024-10-03 15:57:44 +02:00
Mis012
6560512b47 improve --help output and code style in main.c, use ARRAY_SIZE consistently 2024-09-15 00:42:55 +02:00
Mis012
e761bb6a6d api-impl: implement WebView using webkitgtk 2024-09-13 20:29:56 +02:00