Julian Winkler
332d3d1137
copy AdapterView, AbsSpinner and Gallery from AOSP
...
copied from tag android-6.0.1_r81
existing GTK based implementation was moved from AbsSpinner to Spinner
2024-11-24 22:11:40 +00:00
Julian Winkler
f53ad02e6f
api-impl: misc additions for Oeffi
2024-11-24 22:11:40 +00:00
Daniel Panero
eba9c7037c
JavaWidget: add debug info for GTK Inspector
2024-11-19 16:14:36 +01:00
Daniel Panero
fb6565e535
Add paddings and improved margins
2024-11-18 21:39:01 +00:00
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