Upgrade api level to Android 10, implement new sharing api (#1537)
* upgrade api level to Android 10, resolve compile errors * use androidx.preference.PreferenceManager instead of deprecated platform class * add hyphenation to important TextViews * setBottomSheetCallback -> addBottomSheetCallback * implement new sharing api * improve TuskyTileService so it shows account picker when multiple accounts are present * delete unused AccountChooserService * fix test * improve ShareShortcutHelper * remove debug log statement * improve image loading fallback behavior in ShareShortcutHelper * improve behavior on foldable devices
This commit is contained in:
parent
0466b260fc
commit
78b5aa8baf
46 changed files with 283 additions and 265 deletions
8
app/src/main/res/xml/share_shortcuts.xml
Normal file
8
app/src/main/res/xml/share_shortcuts.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<share-target android:targetClass="com.keylesspalace.tusky.MainActivity">
|
||||
<data android:mimeType="text/plain" />
|
||||
<category android:name="com.keylesspalace.tusky.Share" />
|
||||
</share-target>
|
||||
|
||||
</shortcuts>
|
||||
Loading…
Add table
Add a link
Reference in a new issue