Commit Graph

580 Commits

Author SHA1 Message Date
Julian Winkler
6f02565920 GskCanavas: draw default content when custom View calls super.onDraw() 2024-05-27 16:37:49 +00:00
Julian Winkler
6575fef58e replace SkArea with GskCanvas
This reduces RAM usage, as we no longer need to have separate graphics
buffers for all Views with custom onDraw() method
2024-05-27 16:37:49 +00:00
Julian Winkler
d941fd5a81 implement more GskCanvas methods 2024-05-27 16:37:49 +00:00
Julian Winkler
8afdd181d0 WrapperWidget: simulate GTK_OVERFLOW_HIDDEN for 0x0 allocated Views 2024-05-27 16:37:49 +00:00
Mis012
92bb75d19f AssetManager: fix open and openNonAsset not throwing exception on error 2024-05-27 14:01:43 +02:00
Julian Winkler
71717edc58 AssetManager: fix Asset XML file not found error on 32bit
The xmlBlock variable is now a pointer with the recent changes.
So, we shouldn't compare it with >= 0.

The error went unnoticed, because it was only tested on 64bit until now
2024-05-26 16:20:48 +02:00
Julian Winkler
ff3c103377 SoundPool: explicitly extract soundfile asset
With the recent changes assets are no longer extracted by default
2024-05-26 16:20:48 +02:00
Mis012
4374ac01ad AssetManager: use libandroidfw to read assets straight from the apk file
they can still be put on the filesystem and will be read from there
preferentially, though overriding assets in this way can confuse
some creatively written apps and cause them to crash.
2024-05-26 00:10:16 +02:00
plata
dd56a2d551 android/text/TextUtils: add indexOf() + lastIndexOf() 2024-05-24 20:58:16 +00:00
Julian Winkler
d4086fdb90 meson.build: run dx on the whole jar
This is now possible without ARSCLib

Also remove --verbose flag
2024-05-23 23:32:19 +02:00
Julian Winkler
b25545c3c0 remove ARSCLib from the source tree
Also remove references to ARSCLib from doc/Architecture.md
2024-05-23 23:32:19 +02:00
Julian Winkler
778d19f268 remove remaining dependencies on ARSClib 2024-05-23 23:30:03 +02:00
Julian Winkler
64b3a505b6 add ViewGroup.detachViewFromParent(View) 2024-05-23 23:30:03 +02:00
Julian Winkler
34c03c59c3 add some methods needed for NewPipe release 0.27.0 2024-05-23 22:14:30 +02:00
Mis012
54dd61da3d main-executable: add '-e' cmdline option
Some multi-platform apps accept cmdline options using the `-e` option
of `am`. For example, you can now use `-e unity='<unity cmdline>'`
to pass cmdline arguments to a unity game.
2024-05-22 17:06:28 +02:00
Mis012
14e870c9b5 util: add _gdb_force_java_stack_trace 2024-05-21 23:16:39 +02:00
Julian Winkler
c56dd88fb6 fix View.getGlobalVisibleRect() for 0x0 allocated Views
fixes commit f82af6ecb7
2024-05-20 08:12:28 +02:00
Julian Winkler
f535e1b36f ValueAnimator: actually call the AnimatorUpdateListener 2024-05-20 08:12:28 +02:00
Julian Winkler
fdec418102 add some stubs needed because of previous commits
Since we now call draw() on View subclasses, we reach some new
codepaths which need new stubs
2024-05-20 08:12:15 +02:00
Julian Winkler
53d6714a0d DrawableContainer: forward method calls to current selected drawable 2024-05-20 08:12:15 +02:00
Julian Winkler
765f01e715 Drawable: implement GradientDrawable.inflate() and Drawable.createFromXmlInner() 2024-05-20 08:12:15 +02:00
Julian Winkler
dd3965df8a WrapperWidget: create SkArea also for Views with custom draw() method
Previously we only handled custom onDraw() methods
2024-05-20 08:12:02 +02:00
Julian Winkler
2324418813 View.getMatrix(): always return identity matrix
The returned Matrix should only represent rotation and scaling of the
view and should not depend on the position. Since we don't support
rotation and scaling yet, just always return identity
2024-05-20 08:12:02 +02:00
Julian Winkler
415547a90d add ProgressBar.incrementProgressBy() and AudioManager.setStreamVolume() 2024-05-20 08:12:02 +02:00
Julian Winkler
5fdcff4419 put sk_area behind the widget
Most widgets want to draw something behind the default content.

If we replace SkArea with GskCanvas in the future, we could draw
the default content, when the super.onDraw() gets called.
2024-05-20 08:09:01 +02:00