Commit Graph

581 Commits

Author SHA1 Message Date
Julian Winkler
71bb6d96bd implement Context.stopService() 2024-07-31 18:21:14 +02:00
Julian Winkler
23e7d32924 Button/ImageButton: consume touch events
Androids button consumes touch events, while GTKs button lets touch
events propagate to the parent. This previously caused some glitches
with buttons inside a CoordinatorLayout.
2024-07-31 18:21:14 +02:00
Julian Winkler
c7f64cd24b Button/ImageButton: remove old OnClickListener when setting new one 2024-07-31 18:21:14 +02:00
Julian Winkler
36a213b7e2 MessageQueue: optimize main loop implementation
The main loop implementation is quite performance critical. The GSource
is now reused, instead of creating new once each time. Also a timeout of
-1 will now be handled correctly in nativePollOnce().
2024-07-31 11:28:15 +00:00
Julian Winkler
7b11277287 AlertDialog: handle buttons 2024-07-31 11:10:45 +00:00
Julian Winkler
fb82eabd2c replace deprecated GtkDialog with GtkWindow 2024-07-31 11:10:45 +00:00
Julian Winkler
1309eb223a replace deprecated GtkFileChooserNative with GtkFileDialog
Keeping the old implementation inside ifdef for backwards
compatibility with gtk < 4.10
2024-07-31 11:10:45 +00:00
Julian Winkler
4ecd541c6c NotificationManager: implement cancel() for MPRIS notifications 2024-07-20 14:14:53 +02:00
Julian Winkler
9d27fc138b NotificationManager: handle non player part of MPRIS
This exposes the package name to MPRIS and allows to raise the
application to the front when clicking the MPRIS notification.
2024-07-17 22:43:16 +02:00
Julian Winkler
b54bed4784 implementing MediaSession using MPRIS
NotificationManager will now ignore MediaStyle notifications
2024-07-17 22:35:55 +02:00
Mis012
eddd827e27 api-impl: add GridView stub, AnimationSet stub and misc stubs 2024-06-28 22:31:47 +02:00
Mis012
2c1e0dd3b8 Bitmap: implement nativeCopyPixelsFromBuffer 2024-06-28 22:15:57 +02:00
Mis012
26d6337a34 api-impl: GLES20: add glReadPixels 2024-06-28 21:35:31 +02:00
Mis012
3c69d50af1 libandroid: native_window: fake pbuffer support on !x11 2024-06-26 16:07:31 +02:00
Mis012
004ba4ff00 remove some old debugging prints, gate others behind verbose log 2024-06-22 14:35:56 +02:00
Mis012
df074bd2b4 api-impl: add misc stubs/impls 2024-06-22 14:22:37 +02:00
Mis012
da90302946 EGLImpl: eglCreateContext: properly handle shared_context 2024-06-22 14:19:31 +02:00
Mis012
92e2c06347 make sure the apk path is reliably set in the PackageInfo 2024-06-19 22:35:50 +02:00
Mis012
6832f5d16e main-executable: use C.UTF_8 locale, not en_US 2024-06-19 20:50:35 +02:00
Julian Winkler
85a26e4de9 main.c: tell bionic_translation the load from anywhere in the app_data_dir
Facebook implements its own native library unpack mechanism called SoLoader,
which loads native libraries from app_lib_dir/files/decompressed/libs.spo.
The libraries are loaded by absolute path, but bionic_translation needs
to know that this path may contain bionic libraries.
2024-06-16 22:23:07 +02:00
Julian Winkler
bb50bbfa91 add lots of java APIs needed for Whatsapp 2024-06-16 08:45:31 +02:00
Julian Winkler
b81f53e4b2 Bitmap: regenerate GdkTexture when Canvas was used on the Bitmap 2024-06-15 07:14:30 +02:00
Julian Winkler
2a10196bc5 Context: cache SharedPreferences
OsmAnd renderer reads SharedPreferences for every frame. Use cached
objects instead of reading it from disk every time
2024-06-15 00:01:51 +02:00
Julian Winkler
b95613614e implement SurfaceView.lockCanvas() using GskCanvas 2024-06-15 00:00:20 +02:00
Mis012
81797c2667 api-impl: add misc stubs/impls 2024-06-13 21:00:06 +02:00