add shortcut to ComposeActivity (#1147)
This commit is contained in:
parent
475bff00dc
commit
16175ccb43
16 changed files with 55 additions and 1 deletions
BIN
app/src/blue/res/mipmap-hdpi/ic_shortcut_compose.png
Normal file
BIN
app/src/blue/res/mipmap-hdpi/ic_shortcut_compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4 KiB |
BIN
app/src/blue/res/mipmap-mdpi/ic_shortcut_compose.png
Normal file
BIN
app/src/blue/res/mipmap-mdpi/ic_shortcut_compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/blue/res/mipmap-xhdpi/ic_shortcut_compose.png
Normal file
BIN
app/src/blue/res/mipmap-xhdpi/ic_shortcut_compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6 KiB |
BIN
app/src/blue/res/mipmap-xxhdpi/ic_shortcut_compose.png
Normal file
BIN
app/src/blue/res/mipmap-xxhdpi/ic_shortcut_compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
BIN
app/src/blue/res/mipmap-xxxhdpi/ic_shortcut_compose.png
Normal file
BIN
app/src/blue/res/mipmap-xxxhdpi/ic_shortcut_compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
20
app/src/blue/res/xml-v25/shortcuts.xml
Normal file
20
app/src/blue/res/xml-v25/shortcuts.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<shortcut
|
||||
android:icon="@mipmap/ic_shortcut_compose"
|
||||
android:shortcutId="com.keylesspalace.tusky.Compose"
|
||||
android:shortcutLongLabel="@string/compose_shortcut_long_label"
|
||||
android:shortcutShortLabel="@string/compose_shortcut_short_label">
|
||||
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:targetClass="com.keylesspalace.tusky.SplashActivity"
|
||||
android:targetPackage="com.keylesspalace.tusky"/>
|
||||
<intent
|
||||
android:action="com.keylesspalace.tusky.Compose"
|
||||
android:targetClass="com.keylesspalace.tusky.ComposeActivity"
|
||||
android:targetPackage="com.keylesspalace.tusky"/>
|
||||
|
||||
</shortcut>
|
||||
|
||||
</shortcuts>
|
||||
Loading…
Add table
Add a link
Reference in a new issue