Mis012
b19f2c35d2
api-impl-jni: SoundPool: fix formatting
2025-03-26 19:44:06 +01:00
Mis012
6d73fd7a99
XmlBlock: implement nativeGetAttributeName, use getPooledString instead of mStrings.get
2025-03-26 19:42:49 +01:00
Julian Winkler
15a6432d01
Revert "View: call onLayout() only on size change or on request"
...
This reverts commit b33a470c7b .
This commit was added as fix for layout recreation loops, but this is no
longer a problem, since ViewGroup.detachViewFromParent() has been
improved. The first fix is no longer needed and it seems to cause some
minor regressions, so we revert it.
2025-03-25 23:34:56 +01:00
Julian Winkler
caa4700487
ViewGroup: keep track of detachedChildren
...
Some ViewGroups like ViewPager2 call attachViewToParent() without
calling detachViewFromParent() first. This is not allowed according to
the Android API spec, but we need to handle it.
2025-03-25 23:34:56 +01:00
Julian Winkler
4a4b4a4722
api-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore
2025-03-25 23:34:56 +01:00
Julian Winkler
7b0341123b
startActivityForResult(): add initial support for android.intent.action.INSTALL_PACKAGE
...
For now this just calls 'android-translation-layer --install' on the given
APK file. Which would then show the dynamic launcher portal.
2025-03-25 23:17:09 +01:00
Julian Winkler
494b4e7134
call onAnimationStart() / onAnimationStop() callbacks from View.startAnimation()
2025-03-25 23:17:09 +01:00
Julian Winkler
82f1e59f2a
copy ArraySet from AOSP
...
from latest AOSP master (frameworks/base 90a150c2c04d6ba22e4bc7418c0b35bb7d3c9a9b)
2025-03-25 23:17:09 +01:00
Julian Winkler
506de2b807
fix Layout.getLineStart() / Layout.getLineEnd()
...
These methods are supposed to return the String index and not
coordinates as accidently assumed when originally implementing it.
2025-03-25 23:17:09 +01:00
Julian Winkler
e72c579fd4
add stub AndroidKeyStore security provider
2025-03-25 23:17:09 +01:00
Julian Winkler
820b9d7ec5
HACK: make Resources.mDrawableCache of type ThemedResourceCache, but only for F-Droid
...
This field is directly accessed by androidx and some androidx version
expect it to be a Map while other expect a ThemedResourceCache. This
mess is probably caused by reporting an age old Build.SDK_INT.
2025-03-25 23:17:09 +01:00
Julian Winkler
df4d4721ce
make IntentFilter.match() actually functional
2025-03-25 23:17:09 +01:00
Julian Winkler
5a4f56f4ba
uncomment PackageParser.parsePackage()
2025-03-25 23:17:09 +01:00
Julian Winkler
4648dd3249
createMainActivity: prioritize Activities with category DEFAULT
2025-03-25 23:17:09 +01:00
Mis012
32a7846a9d
AssetManager: fix uses of long instead of jlong
2025-03-24 16:59:09 +01:00
Julian Winkler
1edb28b0f7
implement ViewGroup.detachViewFromParent() properly
...
Temporarily detaching a View from its parent should not call any
callbacks, which was the case with the old implementation. This was
causing infinite recreation loops in some cases.
2025-03-23 18:32:47 +01:00
Mis012
582307f74c
ExpandableListView: borrow from AOSP master (commit 272d3ffb52e10ee821eaf58fa398376c45b16b06)
2025-03-07 18:41:21 +01:00
Mis012
2e9099baed
AssetManager: use locking
2025-03-07 18:41:21 +01:00
Mis012
74f2e9f308
MediaPlayer: implement using GtkMediaStream
2025-03-04 18:10:32 +01:00
Julian Winkler
c31ed5e878
Build.md: add missing WebkitGTK dependency
2025-03-03 18:48:31 +01:00
Julian Winkler
fa3292dcb5
add CookieManager and WebStorage, but disable them in NewPipe for now
...
These classes are needed for WhatsApp, but having them available makes
NewPipe try to generate PoTokens in the WebView, which does not work yet,
so we just throw an Exception in NewPipe based on the package name.
2025-03-02 00:05:59 +01:00
Julian Winkler
911b6dff9a
DecelerateInterpolator: add default constructor
2025-03-02 00:05:59 +01:00
Julian Winkler
61ad80d938
PropertyValuesHolder: fix for int properties
2025-03-02 00:05:59 +01:00
Julian Winkler
a9f377f754
Button: fix setText() overriding the compoundDrawable
2025-03-02 00:05:59 +01:00
Julian Winkler
b33a470c7b
View: call onLayout() only on size change or on request
...
GTK always wants us to call gtk_widget_allocate() on all children, so we
need to do it manually when not calling onLayout().
2025-03-02 00:05:59 +01:00