优化ShortCuts显示 #108

This commit is contained in:
HapeLee
2025-10-22 01:22:15 +08:00
parent b393711c9f
commit 2423cda654
8 changed files with 61 additions and 3 deletions
@@ -23,7 +23,7 @@ object ShortCuts {
return ShortcutInfoCompat.Builder(context, "bookshelf")
.setShortLabel(context.getString(R.string.bookshelf))
.setLongLabel(context.getString(R.string.bookshelf))
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_books))
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_book))
.setIntent(bookShelfIntent)
.build()
}
@@ -34,7 +34,7 @@ object ShortCuts {
return ShortcutInfoCompat.Builder(context, "lastRead")
.setShortLabel(context.getString(R.string.last_read))
.setLongLabel(context.getString(R.string.last_read))
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_recent))
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_rec))
.setIntents(arrayOf(bookShelfIntent, readBookIntent))
.build()
}
@@ -45,7 +45,7 @@ object ShortCuts {
return ShortcutInfoCompat.Builder(context, "readAloud")
.setShortLabel(context.getString(R.string.read_aloud))
.setLongLabel(context.getString(R.string.read_aloud))
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_read_aloud))
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_aloud))
.setIntent(readAloudIntent)
.build()
}