Julian Winkler
4e29b6af1d
ImageView: unset Drawable callback when unsetting Drawable
2025-02-10 21:55:14 +01:00
Julian Winkler
652715ee00
Canvas: add more Bitmap drawing methods
2025-02-10 21:55:14 +01:00
Julian Winkler
f69cff7113
implement Bitmap.compress()
2025-02-10 21:55:14 +01:00
Julian Winkler
e9769c1587
Bitmap: explicitly store whether it was recycled
2025-02-10 21:55:14 +01:00
Julian Winkler
c01e57237e
Context.startActivity: find Activity by action for Intents without component
2025-02-10 21:55:14 +01:00
Julian Winkler
edffed5233
Service: extend ContextWrapper
2025-02-10 21:55:14 +01:00
Julian Winkler
c17af62a19
Activity: catch exceptions while setting window background
2025-02-10 21:55:14 +01:00
Mis012
b31dd386ac
CI: don't run on MRs
...
CTS takes ~60min to complete, and free runners are x86
2025-02-09 22:58:01 +01:00
Julian Winkler
cd9f6f5b05
NotificationManager: fix crash when clicking update notification in NewPipe
2025-02-09 16:48:45 +01:00
Mis012
37af37b721
CI: run CTS for each commit
2025-02-07 18:26:26 +01:00
Mis012
ab5b600bf1
run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove
on src/
2025-02-05 16:27:17 +01:00
Mis012
1d2450443e
CI: build an alpine package for each commit
2025-01-29 20:33:38 +01:00
Julian Winkler
2077dc9406
MediaCodec: initialize audio resampler after the codec sample rate is known
2025-01-28 06:54:31 +01:00
Julian Winkler
ecd5996ad2
MediaCodec: inject SPS and PPS into the first video frame
...
For some reason, this is required to make livestreams functional
2025-01-28 06:54:31 +01:00
Julian Winkler
a743361ae4
TextView: set default text to an empty String
2025-01-28 06:54:31 +01:00
Julian Winkler
32dcbe3131
TextView: add getTotalPaddingLeft / getTotalPaddingTop
2025-01-28 06:54:31 +01:00
Julian Winkler
6edde44b05
WebView: support base64 encoding
2025-01-28 06:54:31 +01:00
Julian Winkler
9c454accca
make LayoutInflater instances persistent per Context
...
Also implement LayoutInfater.cloneInContext() and support mutipe View
factories at once.
This is needed, so that androidx can repace all normal Views with
appcompat Views, which is needed for proper tint color support.
2025-01-28 06:54:31 +01:00
Julian Winkler
cb64c13f2d
implement ImageView.setImageTintList()
2025-01-27 18:00:14 +01:00
Julian Winkler
111a90e554
add Bitmap.isMutable()
...
In our implementation all bitmaps are mutable
2025-01-26 22:27:43 +01:00
Julian Winkler
68e32eab45
MediaCodec: add mp3 and opus codecs
2025-01-26 22:27:19 +01:00
Julian Winkler
0091fd6b59
stub FocusFinder to fix crash when pressing arrow keys
...
Since we now have basic support for keyboard input, new code paths can
be reached. For example in the ViewPager in the MainActivity of NewPipe.
2025-01-26 21:59:13 +01:00
Julian Winkler
d0d2a28cef
stub AccessibilityNodeInfo.obtain()
...
This is needed for the debug build of NewPipe
2025-01-26 18:24:34 +01:00
Mis012
2271ae9c06
main: ensure bionic-linked libraries get a non-changning stack guard value
2025-01-17 19:54:36 +01:00
Mis012
465b3ebbfe
View: support multitouch properly
...
seems to work, but there might still be some edge cases
2025-01-15 00:06:06 +01:00
Julian Winkler
98e7989ccb
api-impl: fixes for apps using old support library
2025-01-13 14:17:40 +01:00
Julian Winkler
64c5ebe5b6
api-impl: misc stubs for K-9 Mail
...
This makes the non composeUI parts of K-9 Mail mostly functional.
2025-01-12 14:37:24 +01:00
Julian Winkler
554b4d346a
TextView: store text in the Java object
...
Some apps expect getText() to return a Spannable instead of a String.
2025-01-12 14:37:04 +01:00
Julian Winkler
9d3a328ba8
copy ViewAnimator from AOSP
2025-01-12 14:37:04 +01:00
Julian Winkler
62c964e8bd
implement PackageManager.getLaunchIntentForPackage()
...
fixes a crash after importing a NewPipe backup
2025-01-12 09:59:23 +01:00
Julian Winkler
99c1e1ee94
fix ContentResolver.openFileDescriptor() for file:// URIs
...
new File() needs to be called with a path not a URI
2025-01-12 09:57:56 +01:00
Julian Winkler
b22001adbf
TypedArray: revert getColor hack
2025-01-11 23:23:53 +01:00
Julian Winkler
dfa1662033
Theme.obtainStyledAttributes() set theme of returned TypedArray
...
This is needed to infalte ColorStateLists properly
2025-01-11 23:23:53 +01:00
Julian Winkler
785c24af62
implement View.setKeepScreenOn()
2025-01-11 23:23:53 +01:00
Julian Winkler
7700d8bf11
replace VectorDrawable with AOSP implementation from Android 6
...
This way, we can avoid librsvg which causes stack overflows on
Alpine/postmarketOS, because of musl's limited stack size.
2025-01-11 23:23:53 +01:00
Julian Winkler
f2a32dae61
update android_content_res_AssetManager.h
2025-01-11 23:23:53 +01:00
Julian Winkler
e6a22df315
AudioTrack: recover underruns properly
2025-01-11 23:23:53 +01:00
Julian Winkler
57dd86fc98
api-impl: misc stubs for WhatsApp
2025-01-11 22:42:25 +01:00
Julian Winkler
2a3c8fd5fa
copy ViewStub from AOSP
2025-01-11 22:42:25 +01:00
Julian Winkler
54aaa42d86
ViewGroup: prevent NotFoundException caused by log message
2025-01-11 22:42:25 +01:00
Julian Winkler
1aba1c901d
LayoutInflater: use onCreateView() method from Activity if provided
2025-01-11 22:42:25 +01:00
Julian Winkler
6be60574aa
Activity.startActivityForResult(): use internalCreateActivity helper method
2025-01-11 22:42:25 +01:00
Julian Winkler
a4c14c9cd1
implement ObjectAnimator.ofInt() using reflection
2025-01-11 22:42:25 +01:00
Mis012
7aea3a6920
PackageParser: fix use-after-release
2025-01-02 22:40:26 +01:00
Mis012
7354864e34
Path: stub out the rest of addRoundRect variants
2025-01-02 22:39:57 +01:00
Mis012
279c95becb
borrow relevant parts of AOSP commit dbee9bb342cdfaa5155b1918f90262c05e2464cb
...
Our SVG-based VectorDrawable implementation still relies on `getDefaultColor`
but exceptions are no longer thrown when parsing VectorDrawable xml files
which use gradients as colors.
2025-01-02 22:25:13 +01:00
Mis012
7d59407138
AssetManager: implement resolveAttrs
2025-01-02 22:18:45 +01:00
Mis012
b56f42ec3d
android/annotations: add Nullable and NonNull from AOSP
2025-01-02 19:17:05 +01:00
Julian Winkler
c16feb72e5
MessageQueue: fix integer overflow when converting ms to us
2025-01-01 11:33:16 +01:00
Pierre-Hugues Husson
c81442321e
api-impl: stubs and fixes for latest WhatsApp version
2025-01-01 11:33:16 +01:00