Commit Graph

403 Commits

Author SHA1 Message Date
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
Julian Winkler
e3c0931714 prevent reference cycles between Java and native objects 2024-08-02 17:02:53 +02:00
Julian Winkler
45801d8f17 implement EditText.removeTextChangedListener() 2024-08-01 22:06:27 +02:00
Julian Winkler
72c47703b9 implement AssetManager.getLocales() 2024-08-01 22:06:27 +02:00
Julian Winkler
3c5a21357d multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
2024-08-01 19:57:12 +00:00
Julian Winkler
29e5298178 MediaCodec: handle end-of-file properly 2024-07-31 18:21:14 +02:00