Update vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt

This commit is contained in:
Benoit Marty 2020-07-03 12:28:32 +02:00 committed by GitHub
parent bdfce35d9a
commit 85ee183e4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1354,7 +1354,7 @@ class RoomDetailFragment @Inject constructor(
}
private fun onSaveActionClicked(action: EventSharedAction.Save) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q &&
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q
!checkPermissions(PERMISSIONS_FOR_WRITING_FILES, this, SAVE_ATTACHEMENT_REQUEST_CODE)) {
sharedActionViewModel.pendingAction = action
return