Skip to content

Commit e16f76a

Browse files
committed
Avoid wrong usage of EXTRA_SHORTCUT_ID
EXTRA_SHORTCUT_ID is only available in Android 10 (Q) Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
1 parent 6c45aac commit e16f76a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class ConversationsListActivity : BaseActivity() {
329329

330330
// Share sheet shortcut tap: Android delivers ACTION_SEND with EXTRA_SHORTCUT_ID.
331331
// Extract the room token from the shortcut ID so we can pre-select the conversation.
332-
if (hasActivityActionSendIntent()) {
332+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && hasActivityActionSendIntent()) {
333333
val shortcutId = intent.getStringExtra(Intent.EXTRA_SHORTCUT_ID)
334334
if (shortcutId != null) {
335335
pendingDirectShareToken = DirectShareHelper.extractTokenFromShortcutId(shortcutId)

0 commit comments

Comments
 (0)