优化ShortCuts显示 #108
This commit is contained in:
1 file changed
+3
-3
@@ -23,7 +23,7 @@ object ShortCuts {
|
|||||||
return ShortcutInfoCompat.Builder(context, "bookshelf")
|
return ShortcutInfoCompat.Builder(context, "bookshelf")
|
||||||
.setShortLabel(context.getString(R.string.bookshelf))
|
.setShortLabel(context.getString(R.string.bookshelf))
|
||||||
.setLongLabel(context.getString(R.string.bookshelf))
|
.setLongLabel(context.getString(R.string.bookshelf))
|
||||||
.setIcon(IconCompat.createWithResource(context, R.drawable.icon_read_book))
|
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_bottom_books_e))
|
||||||
.setIntent(bookShelfIntent)
|
.setIntent(bookShelfIntent)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ object ShortCuts {
|
|||||||
return ShortcutInfoCompat.Builder(context, "lastRead")
|
return ShortcutInfoCompat.Builder(context, "lastRead")
|
||||||
.setShortLabel(context.getString(R.string.last_read))
|
.setShortLabel(context.getString(R.string.last_read))
|
||||||
.setLongLabel(context.getString(R.string.last_read))
|
.setLongLabel(context.getString(R.string.last_read))
|
||||||
.setIcon(IconCompat.createWithResource(context, R.drawable.icon_read_book))
|
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_restore))
|
||||||
.setIntents(arrayOf(bookShelfIntent, readBookIntent))
|
.setIntents(arrayOf(bookShelfIntent, readBookIntent))
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ object ShortCuts {
|
|||||||
return ShortcutInfoCompat.Builder(context, "readAloud")
|
return ShortcutInfoCompat.Builder(context, "readAloud")
|
||||||
.setShortLabel(context.getString(R.string.read_aloud))
|
.setShortLabel(context.getString(R.string.read_aloud))
|
||||||
.setLongLabel(context.getString(R.string.read_aloud))
|
.setLongLabel(context.getString(R.string.read_aloud))
|
||||||
.setIcon(IconCompat.createWithResource(context, R.drawable.icon_read_book))
|
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_read_aloud))
|
||||||
.setIntent(readAloudIntent)
|
.setIntent(readAloudIntent)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user