Commit graph

882 commits

Author SHA1 Message Date
Julian Winkler
60095ea795 ListView: copy from AOSP
copied from tag android-6.0.1_r81
2024-11-30 18:56:17 +00:00
Mis012
d5bc4ea9a6 implement instrumentation 2024-11-30 18:57:03 +01:00
Mis012
f61f200d7b NativeActivity: cooperate with nativebridge when it's in use 2024-11-30 18:54:53 +01:00
Mis012
9f244edc05 native_window: fix wayland pbuffer emulation 2024-11-30 18:54:53 +01:00
Mis012
0803848c6d api-impl: misc stubs/additions 2024-11-30 18:54:53 +01:00
Mis012
39504d1437 XmlBlock: nativeNext: properly skip certain tags, throw exception for BAD_DOCUMENT 2024-11-29 00:23:49 +01:00
Daniel Panero
be93b4c396 JavaWidget: add css classes and default_stylesheet.css 2024-11-26 16:33:38 +01:00
Julian Winkler
d6d2c94abd implement DateUtils.formatElapsedTime()
This is needed for NewPipe 0.27.3
2024-11-25 10:01:51 +01:00
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
Julian Winkler
7626992241 Animator: call onAnimationEnd() asynchronously 2024-11-24 22:49:31 +01:00
Julian Winkler
fd541bec75 wayland_server: implement wl_buffer destroy listener
Fixes a segfault, where a wl_buffer was destroyed while in use. Also it
allows us to replace the custom caching mechanism and instead find
existing buffers by their destroy listener.
2024-11-21 19:05:39 +01:00
Julian Winkler
09176cade8 native_window: fix using the embedded Wayland server when the system is X11 2024-11-21 19:05:39 +01:00
Kilian "CaféHaine" Guillaume
44d922baea api-impl: stubs and fixes for Open Sudoku 2024-11-20 23:09:53 +01: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
13ed9d76bb Updated framework-res to 3d916f71dfbb5477c40a46c9b19c125f4c719045
Also remove non public drawables and layouts using the new python script
2024-11-18 21:39:01 +00:00
Julian Winkler
e2d7f7fbb4 framework-res: add python script to remove unused resources
This script can be used when importing framework-res from AOSP
2024-11-18 21:39:01 +00:00
Daniel Panero
5f6943fd81 Add backbutton 2024-11-17 23:37:10 +00:00
Daniel Panero
f48fce5932 api-impl: misc stubs and fixes for Spotify II 2024-11-17 17:40:06 +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
58f29b7ba2 implement minimal Wayland server to import EGL surfaces into GtkGraphicsOffload
This allows us to use the translucent cutout feature of
GtkGraphicsOffload, which can not be implemented with our custom
subsurface implementation.
2024-11-17 16:50:45 +01:00
Julian Winkler
c5ed3c6b9c doc/Build.md: update WolfSSL commands for WolfSSL 5.7.4
This version includes a fix for certificates with more than 128 alt
names. Some configuration options have been removed because they are now
enabled by default.
2024-11-15 18:01:36 +01:00
Christian Stadelmann
c6be36f553 Context: Fix typo 2024-11-14 19:52:14 +00:00
Kilian "CaféHaine" Guillaume
e5a6ee2b55 api-impl: add misc stubs for Open Sudoku 2024-11-14 19:50:26 +00:00
Julian Winkler
1fb5be92dc fix build with libportal < 0.8 2024-11-13 23:02:55 +01:00
Mis012
ab114245bd ContentProvider: wrap in try/catch
Errors thrown here shouldn't be fatal, the app will often work just fine
without any ContentProviders (especially a mostly-native app probably
only uses them for ads)
2024-11-09 16:30:29 +01:00
Julian Winkler
da36ebea9a MadiaCodec: allow application to specify input buffer size
This is required for high resolution video playback
2024-11-06 23:32:40 +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
Daniel Panero
e541d87fc2 api-impl: misc stubs and fixes for Spotify 2024-11-02 17:03:53 +00: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
acdd3c88cc AssetManager: fix resource loading if APK path contains spaces
Spaces will get encoded to %20 by the ClassLoader. We need to decode
them again to get the original path.
2024-11-01 17:49:20 +01:00
Julian Winkler
8734a7ef2b Set Configuration.screenLayout depending on monitor geometry
With this configuration, NewPipe enables tablet mode on larger screens.
2024-10-31 20:34:26 +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
0bec10bb26 disable decoration on mobile compositors by default
On mobile compositors like Phosh, the title bar will have no
buttons and is useless. Therefore it can be disabled by default.

This behaviour can still be overwritten using the
ATL_DISABLE_WINDOW_DECORATIONS environment variable.
2024-10-31 16:49:26 +01:00
Julian Winkler
b413f67932 implement ContentProvider.attachInfo() callback
This fixes a crash in NewPipes DownloadActivity
2024-10-31 16:41:46 +01:00
Mattéo Axelle
b528bad2fc Settings: add Global.getString 2024-10-31 13:18:38 +00:00
Mattéo Axelle
82801b4303 StrictMode: return new ThreadPolicy instead of null 2024-10-31 13:18:38 +00:00
Mattéo Axelle
f5674faa4a PackageManager: always grant com.google.android.c2dm.permission.SEND 2024-10-31 13:18:38 +00:00
Julian Winkler
6162868bd1 main-executable: handle empty string being passed to --uri
The XDG-portal escapes the strings when installing a .desktop file. This
causes --uri %u to be replaced with --uri '%u', which causes an empty
string to be passed when no URI is specified.
2024-10-31 12:57:20 +01:00
Mattéo Axelle
e2f41610de doc/Build.md: add build information for alpine 2024-10-30 19:19:23 +01:00
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