Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky/components
Christophe Beyls f69cae2315
Optimize I/O code using Okio - part 2 (#4372)
- Read license resource using Okio inside a coroutine (instead of the
main thread) in `LicenseActivity`
- Use Okio and its buffer system to copy ContentProvider streams and
files to a temporary file in `MediaUploader.prepareMedia()`
- Properly close the input file after copying it to a temporary file in
`MediaUploader.prepareMedia()`
- Properly close sink in case of null body source during file copy in
`Uri.copyToFolder()` in `DraftHelper.kt`
- Add comment explaining the current value of `DEFAULT_CHUNK_SIZE` in
`UriRequestBody.kt` and indent the file properly
- Replace hardcoded `Charset` and `Int` byte size with the proper
constants, and align the `hashCode()` implementation with other
`BitmapTransformation` implementations in
`CompositeWithOpaqueBackground`
- Properly close `InputStream` in case of error during Bitmap size
decoding in `getImageSquarePixels()`
- return `Int` instead of `Long` in `getImageSquarePixels()`, since the
current code simply converts the `Int` result to a `Long` _after_
multiplication and not before (and `Int.MAX_VALUE` is already way above
the maximum number of pixels a decoded Bitmap could return)
- Simplify `getImageOrientation()`
- Add explicit dependency to the Okio library and upgrade it to its
latest version.
2024-04-14 16:39:29 +02:00
..
account Apply window insets to SwipeRefreshLayout in AccountActivity to not obscure spinner (#4371) 2024-04-14 16:13:41 +02:00
accountlist Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
announcements Migrate LiveData to Flow (#4337) 2024-03-27 11:34:17 +01:00
compose Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
conversation Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
domainblocks Don't use mutable shared flows in UI (#4346) 2024-03-29 20:02:12 +01:00
drafts Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
filters Don't use mutable shared flows in UI (#4346) 2024-03-29 20:02:12 +01:00
followedtags Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
instanceinfo fix crash when instance info fails to load (#4335) 2024-03-26 18:25:34 +01:00
login show rules of the correct instance on the auth screen (#4358) 2024-04-05 12:01:54 +02:00
notifications Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
preference Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
report Migrate LiveData to Flow (#4337) 2024-03-27 11:34:17 +01:00
scheduled Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
search Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
timeline Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
trending Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
viewthread Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00