File tree 1 file changed +7
-5
lines changed
vector/src/main/java/im/vector/app/features/home
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,19 @@ class ShortcutCreator @Inject constructor(
65
65
} catch (failure: Throwable ) {
66
66
null
67
67
}
68
+ val categories = if (Build .VERSION .SDK_INT >= 25 ) {
69
+ setOf (directShareCategory, ShortcutInfo .SHORTCUT_CATEGORY_CONVERSATION )
70
+ } else {
71
+ setOf (directShareCategory)
72
+ }
73
+
68
74
return ShortcutInfoCompat .Builder (context, roomSummary.roomId)
69
75
.setShortLabel(roomSummary.displayName)
70
76
.setIcon(bitmap?.toProfileImageIcon())
71
77
.setIntent(intent)
72
78
.setLongLived(true )
73
79
.setRank(rank)
74
-
75
- // Make it show up in the direct share menu
76
- .setCategories(setOf (
77
- directShareCategory,
78
- ShortcutInfo .SHORTCUT_CATEGORY_CONVERSATION ))
80
+ .setCategories(categories)
79
81
80
82
.build()
81
83
}
You can’t perform that action at this time.
0 commit comments