mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-24 15:17:37 +01:00
fixing the default dialer check
This commit is contained in:
parent
7331217e8a
commit
4acee7d62b
@ -340,4 +340,4 @@ fun Context.deleteBlockedNumber(number: String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.M)
|
@TargetApi(Build.VERSION_CODES.M)
|
||||||
fun Context.isDefaultDialer() = telecomManager.defaultDialerPackage != packageName
|
fun Context.isDefaultDialer() = telecomManager.defaultDialerPackage == packageName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user