if the app is set as default, just go ahead
This commit is contained in:
parent
0f4e89c8a9
commit
4273ff0b22
1 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,6 @@ import android.app.Activity
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import android.util.Log
|
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import com.simplemobiletools.commons.extensions.appLaunched
|
import com.simplemobiletools.commons.extensions.appLaunched
|
||||||
|
|
@ -37,7 +36,9 @@ class MainActivity : SimpleActivity() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Telephony.Sms.getDefaultSmsPackage(this) != packageName) {
|
if (Telephony.Sms.getDefaultSmsPackage(this) == packageName) {
|
||||||
|
askPermissions()
|
||||||
|
} else {
|
||||||
if (isQPlus()) {
|
if (isQPlus()) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue