#891 - Call button will call instead of dial if possible

This commit is contained in:
Moez Bhatti
2018-07-24 16:09:18 -04:00
parent bd437f664b
commit 555e758c2b
5 changed files with 15 additions and 4 deletions
@@ -41,6 +41,8 @@ class PermissionManagerImpl @Inject constructor(private val context: Context) :
override fun hasPhone(): Boolean = ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PERMISSION_GRANTED
override fun hasCalling(): Boolean = ContextCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE) == PERMISSION_GRANTED
override fun hasStorage(): Boolean = ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PERMISSION_GRANTED
}