Removed version check

This commit is contained in:
Constantin Wartenburger 2020-10-12 17:54:02 +02:00
parent 741f3f4066
commit c0a5402684
No known key found for this signature in database
GPG Key ID: 7439D96D8E1DB894
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package im.vector.app.features.share
import android.app.Activity import android.app.Activity
import android.content.ClipDescription import android.content.ClipDescription
import android.content.Intent import android.content.Intent
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.view.View import android.view.View
import android.widget.Toast import android.widget.Toast
@ -89,7 +88,7 @@ class IncomingShareFragment @Inject constructor(
} }
// Direct share // Direct share
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && intent.hasExtra(Intent.EXTRA_SHORTCUT_ID)) { if (intent.hasExtra(Intent.EXTRA_SHORTCUT_ID)) {
val roomId = intent.getStringExtra(Intent.EXTRA_SHORTCUT_ID)!! val roomId = intent.getStringExtra(Intent.EXTRA_SHORTCUT_ID)!!
sessionHolder.getSafeActiveSession()?.getRoomSummary(roomId)?.let { viewModel.handle(IncomingShareAction.ShareToRoom(it)) } sessionHolder.getSafeActiveSession()?.getRoomSummary(roomId)?.let { viewModel.handle(IncomingShareAction.ShareToRoom(it)) }
} }