Commit Graph

814 Commits

Author SHA1 Message Date
Julian Winkler
9b6c8db5ed enable lazy linking for libandroid so that it can launch with missing symbols
Outdated Nvidia driver version 340 doesn't implement EGL and causes
following error:
symbol lookup error: /app/lib/libandroid.so.0: undefined symbol: eglGetPlatformDisplay

The crash can be avoided by lazy linking as long as the application doesn't
use EGL directly.
2024-10-29 19:59:35 +00:00
Daniel Panero
0efbee538a api-impl: Add DumpHeapProvider.java 2024-10-29 19:26:25 +00:00
Mis012
3d02598b75 meson.build: add install_rpath for libtranslation_layer_main.so 2024-10-29 14:12:39 +01:00
Daniel Panero
2e2a3c889c ViewGroup: Fix margin layout 2024-10-28 18:03:29 +01:00
Pistachio Guy
f1e964ac36 docs/Build.md: Fix Fedora dependency install command 2024-10-23 23:56:42 +00:00
Julian Winkler
d79df985c7 Drawable: don't force aspect ratio 2024-10-23 16:38:01 +02:00
Julian Winkler
ade5e1f1ca Activity: set windowBackground on start
This overwrites the GTK window backgrounds and therefore makes theming
more consistent when GTK theme and Android theme doesn't match.
2024-10-23 16:35:58 +02:00
Julian Winkler
bcdf3eb3ce add missing null pointer check in MediaCodec.release()
When the MediaCodec failed to initialize, the native_codec pointer can
be null and releasing it would cause a SEGFAULT in native code.
2024-10-22 18:05:09 +02:00
Markuss Broks
5eb750b253 GLImpl: more implementations 2024-10-14 19:59:49 +03:00
Markuss Broks
b09aff6316 native_window: fix for Nvidia proprietary drivers 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
d06b14933d delay Dialog.dismiss() by 10ms to work around NewPipe race condition 2024-10-07 11:55:33 +02:00
Julian Winkler
1f2cfebe4e add WindowManager.LayoutParams.alpha 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
a8ef5a533a implement passing a URI to open inside the application
Supported URI schemes will also be added to the .desktop file for --install

The URI is passed as named parameter --uri. This allows us to use unnamed parameters
for split APK apps in the future
2024-10-07 11:54:23 +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
0627ae7e54 misc stubs for OctoDroid version 4.6.12 2024-10-04 23:51:30 +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
98af3b8584 WebView: HACK: make OctoDroid work without real javascriptInterface 2024-10-04 15:23:34 +02:00