Cleanup
This commit is contained in:
parent
59e3b421bb
commit
76ab34f1a6
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue