added handling for write_call_log permission

This commit is contained in:
tibbi 2018-08-03 15:58:20 +02:00
parent b8e2c4fe42
commit f4e06b59fe
3 changed files with 3 additions and 1 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '4.5.16'
propVersionName = '4.5.17'
kotlin_version = '1.2.60'
support_libs = '27.1.1'
}

View file

@ -213,6 +213,7 @@ fun Context.getPermissionString(id: Int) = when (id) {
PERMISSION_READ_CALENDAR -> Manifest.permission.READ_CALENDAR
PERMISSION_WRITE_CALENDAR -> Manifest.permission.WRITE_CALENDAR
PERMISSION_CALL_PHONE -> Manifest.permission.CALL_PHONE
PERMISSION_WRITE_CALL_LOG -> Manifest.permission.WRITE_CALL_LOG
else -> ""
}

View file

@ -165,6 +165,7 @@ const val PERMISSION_WRITE_CONTACTS = 6
const val PERMISSION_READ_CALENDAR = 7
const val PERMISSION_WRITE_CALENDAR = 8
const val PERMISSION_CALL_PHONE = 9
const val PERMISSION_WRITE_CALL_LOG = 10
// conflict resolving
const val CONFLICT_SKIP = 1