mirror of
https://github.com/FossifyOrg/Messages.git
synced 2026-06-21 23:08:42 -04:00
if the app is set as default, just go ahead
This commit is contained in:
@@ -4,7 +4,6 @@ import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.provider.Telephony
|
||||
import android.util.Log
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import com.simplemobiletools.commons.extensions.appLaunched
|
||||
@@ -37,7 +36,9 @@ class MainActivity : SimpleActivity() {
|
||||
return
|
||||
}
|
||||
|
||||
if (Telephony.Sms.getDefaultSmsPackage(this) != packageName) {
|
||||
if (Telephony.Sms.getDefaultSmsPackage(this) == packageName) {
|
||||
askPermissions()
|
||||
} else {
|
||||
if (isQPlus()) {
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user