File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import androidx.core.content.FileProvider
1515import com.simplemobiletools.commons.extensions.*
1616import com.simplemobiletools.commons.helpers.PERMISSION_READ_CONTACTS
1717import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_CONTACTS
18+ import com.simplemobiletools.commons.helpers.isMarshmallowPlus
1819import com.simplemobiletools.commons.helpers.isNougatPlus
1920import com.simplemobiletools.contacts.pro.BuildConfig
2021import com.simplemobiletools.contacts.pro.R
@@ -344,4 +345,4 @@ fun Context.deleteBlockedNumber(number: String) {
344345}
345346
346347@TargetApi(Build .VERSION_CODES .M )
347- fun Context.isDefaultDialer () = telecomManager.defaultDialerPackage == packageName
348+ fun Context.isDefaultDialer () = isMarshmallowPlus() && telecomManager.defaultDialerPackage == packageName
You can’t perform that action at this time.
0 commit comments