Commit Graph

726 Commits

Author SHA1 Message Date
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
Julian Winkler
cdd2575116 ProgressBar: support indeterminateOnly 2024-10-03 15:57:44 +02:00
Julian Winkler
973225738b LayoutInflater: catch non critical exception in generateLayoutParams 2024-10-03 15:57:44 +02:00
Julian Winkler
14eae15178 ListView: implement setSelection() and scrollTo() 2024-10-03 15:57:44 +02:00
Julian Winkler
3d38ec9755 add Java APIs needed for WhatsApp settings 2024-10-03 15:57:44 +02:00
Julian Winkler
6c454085dd ListView: implement header and footer Views
Underlying HeaderViewListAdapter class is copied from AOSP
2024-10-03 15:57:44 +02:00
Julian Winkler
80013bc2d8 Hack: Process.myUid(): provide wrong Uid
Some applications like Whatsapp don't accept files with their own Uid for security reasons
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
265ac895d3 call Activity.onActivityResult() directly
this method must be called before onResume()
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
9d8e091799 update screenshot 2024-09-29 00:07:13 +02:00
Mis012
fc6e101ad5 README: add a BeatSaber screenshot 2024-09-23 17:35:49 +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
4cb9cea3ba native_window: remove UGLY_HACK_FOR_VR, it's not needed because we now emulate pbuffers on wayland; also, using Gtk's X11 backend is always an option 2024-09-13 20:36:44 +02:00