This commit is contained in:
Benoit Marty 2021-07-13 00:41:26 +02:00
parent 59e3b421bb
commit 76ab34f1a6
1 changed files with 2 additions and 2 deletions

View File

@ -108,14 +108,14 @@ class CreateDirectRoomActivity : SimpleFragmentActivity(), UserListViewModel.Fac
} }
private fun openAddByQrCode() { private fun openAddByQrCode() {
if (checkPermissions(PERMISSIONS_FOR_TAKING_PHOTO, this, permissionCameraLauncher, 0)) { if (checkPermissions(PERMISSIONS_FOR_TAKING_PHOTO, this, permissionCameraLauncher)) {
addFragment(R.id.container, CreateDirectRoomByQrCodeFragment::class.java) addFragment(R.id.container, CreateDirectRoomByQrCodeFragment::class.java)
} }
} }
private fun openPhoneBook() { private fun openPhoneBook() {
// Check permission first // Check permission first
if (checkPermissions(PERMISSIONS_FOR_MEMBERS_SEARCH, this, permissionReadContactLauncher, 0)) { if (checkPermissions(PERMISSIONS_FOR_MEMBERS_SEARCH, this, permissionReadContactLauncher)) {
addFragmentToBackstack(R.id.container, ContactsBookFragment::class.java) addFragmentToBackstack(R.id.container, ContactsBookFragment::class.java)
} }
} }