Android 14 support
- Android 14以降の場合、画像と動画を選択する際にJetpackの写真選択ツールを使う
- ただしアプリの権限の「写真と動画へのアクセス」が「全て許可」なら旧来のSAFピッカーを開く
- 端末の設定のアプリ毎の設定で、権限の「写真と動画へのアクセス」を「全て許可」にすることでピッカーの右上に「…」が表示される。これを使うと従来どおりGoogle Driveなどから画像をインポートすることができます。
Fix
- MisskeyからMastodonに来た投稿の添付メディアの説明文に文字列
"null"
が含まれる問題の対策 - Mastodon 4.0以降で単語フィルタの削除に失敗していた
Dependencies
- displayMetrics.scaledDensity was deprecated in API 34
- detekt 1.23.4
- update other dependencies.
- change QR code generator to com.github.alexzhirkevich:custom-qr-generator
Changing visual media picker
Due to Android 14 restriction, the visual media (image and video) picker has been changed.
Android 14's visual media picker is more secure, because the app can access media only selected by user, other media is protected by Android OS.
However, SAF framework cannot be used in this restriction. For example, you can't select images on Google Drive.
There is a workaround to use the SAF framework picker even on Android 14 devices, But it's a bit of a hassle.
- open "device settings → app → Subway Toote → Permissions → Access to photos and videos", then select "Allow all".
- After change permission, the “…” icon will be added to the top right of the media selection dialog.
- (this workaround is implemented in ST's code. not for all apps.)