Mis012
a1df6a43e5
api-impl: stubs to make OsmAnd allow OpenGL renderer
...
it doesn't render anything sadly
2024-04-14 21:48:19 +02:00
Mis012
e1abceee85
api-impl: more stubs to make OsmAnd launch
...
with latest bionic_translation, OsmAnd doesn't crash in native code
2024-04-14 15:15:42 +02:00
Julian Winkler
62f91e8d3e
install option: install apk to base app data dir
...
The default location is $HOME/.local/share/android_translation_layer/_installed_apks_/
2024-04-13 19:20:38 +02:00
Julian Winkler
5e674e1410
add option to install desktop entry with dynamic launcher portal
...
A desktop entry is needed to have window icons on Wayland.
2024-04-13 19:20:38 +02:00
Julian Winkler
1150402e38
Wayland: set application_id to package name for window icons
...
This needs a {package_name}.desktop file defining the icon
2024-04-13 15:45:22 +02:00
Julian Winkler
322f650d2c
use g_get_user_data_dir() to locate app_data_dir_base
...
In order to be compatible with the XDG base specification
2024-04-13 15:45:22 +02:00
Julian Winkler
d5c2c122fc
MediaCodec: make use of GtkGraphicsOffload when gtk >= 4.14
...
This replaces our custom subsurface implementation and has the
advantages, that the subsurface gets repositioned automatically and it
also supports underlay surfaces, so that the application can put control
widgets on top of the SurfaceView.
Our custom subsurface implementation will still be used for GL rendering
2024-04-13 15:25:39 +02:00
Mis012
2802aaa28d
api-impl: add stubs / simple stuff for OsmAnd
...
without native libs present, launches and renders white square
in map view; with native libs present, segfaults in bundled skia
2024-04-13 15:22:38 +02:00
Mis012
fefd2f108b
ImageView: handle setScaleType where it maps trivially to Gtk
2024-04-10 23:48:11 +02:00
Mis012
b12cebe66a
ProgressBar: add hack to fix NewPipe regression
2024-04-10 22:13:23 +02:00
Mis012
25325ca4e5
Paint: implement setAntiAlias, handle ANTI_ALIAS_FLAG
2024-04-09 18:58:05 +02:00
Julian Winkler
540071e97e
ColorStateList: load color with obtainStyledAttributes()
2024-04-09 18:19:46 +02:00
Julian Winkler
ce6b83ad81
AssetManager: load style with parser.getAttribute(null, "style")
...
This way, we get the type as well and can check for it being an
attribute properly.
2024-04-09 18:19:44 +02:00
Julian Winkler
3d9eb9611f
GskCanvas: implement drawPath, rotate, translate, save, restore
...
This is enough to make DrawerArrowDrawable functional.
drawPath() only draws line segments for now.
2024-04-09 18:19:18 +02:00
Julian Winkler
74bedcc93c
implement Drawable.invalidateSelf()
2024-04-09 18:19:18 +02:00
Julian Winkler
ae58d2b319
implement TextView.setCompoundDrawables()
...
This adds an additional GtkBox for every TextView
2024-04-09 18:19:18 +02:00
Julian Winkler
849701c5c4
Drawable: call getIntrinsic{Width/Height}
2024-04-09 18:19:18 +02:00
Julian Winkler
9e770c663c
ImageView: use obtainStyledAttributes()
...
This is needed to support resolving attributes from themes
2024-04-09 18:19:18 +02:00
Julian Winkler
2f4cd3917f
implement some APIs needed for OctoDroid
2024-04-09 18:19:13 +02:00
Mis012
0352a307b9
AssetManager: applyStyle: use loadResourceBagValue instead of creating a temporary theme
2024-04-08 18:28:18 +02:00
Mis012
0f14370c8b
AssetManager: applyStyle: handle "style" value being an attribute, append styles to global theme instead of replacing it
2024-04-07 23:23:31 +02:00
Mis012
db4add0842
Resources: improve debug printout
2024-04-07 23:23:31 +02:00
Mis012
fea7a9e021
LayoutInflater: add AOSP boilerplate, it seems this file has large portions copied from AOSP
2024-04-07 23:23:31 +02:00
Mis012
b229d83ad8
GskCanvas: implement drawRect
2024-04-07 23:23:30 +02:00
Mis012
677ff43a20
ColorDrawable: add a draw method
...
we don't use this directly, but it can be called by an app
2024-04-07 23:23:30 +02:00