forked from upstream-mirrors/quik
Use startActivityExternal for urls
This commit is contained in:
@@ -134,22 +134,22 @@ class Navigator @Inject constructor(
|
|||||||
|
|
||||||
fun showDeveloper() {
|
fun showDeveloper() {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti"))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti"))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showSourceCode() {
|
fun showSourceCode() {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms"))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms"))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showChangelog() {
|
fun showChangelog() {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms/releases"))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms/releases"))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showLicense() {
|
fun showLicense() {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms/blob/master/LICENSE"))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/moezbhatti/qksms/blob/master/LICENSE"))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showBlockedConversations() {
|
fun showBlockedConversations() {
|
||||||
@@ -165,7 +165,7 @@ class Navigator @Inject constructor(
|
|||||||
|
|
||||||
fun showDonation() {
|
fun showDonation() {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://bit.ly/QKSMSDonation"))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://bit.ly/QKSMSDonation"))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showRating() {
|
fun showRating() {
|
||||||
@@ -175,10 +175,10 @@ class Navigator @Inject constructor(
|
|||||||
or Intent.FLAG_ACTIVITY_MULTIPLE_TASK)
|
or Intent.FLAG_ACTIVITY_MULTIPLE_TASK)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
} catch (e: ActivityNotFoundException) {
|
} catch (e: ActivityNotFoundException) {
|
||||||
val url = "http://play.google.com/store/apps/details?id=com.moez.QKSMS"
|
val url = "http://play.google.com/store/apps/details?id=com.moez.QKSMS"
|
||||||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
|
startActivityExternal(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ class Navigator @Inject constructor(
|
|||||||
fun installCallControl() {
|
fun installCallControl() {
|
||||||
val url = "https://play.google.com/store/apps/details?id=com.flexaspect.android.everycallcontrol"
|
val url = "https://play.google.com/store/apps/details?id=com.flexaspect.android.everycallcontrol"
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -197,7 +197,7 @@ class Navigator @Inject constructor(
|
|||||||
fun installSia() {
|
fun installSia() {
|
||||||
val url = "https://play.google.com/store/apps/details?id=org.mistergroup.shouldianswer"
|
val url = "https://play.google.com/store/apps/details?id=org.mistergroup.shouldianswer"
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
|
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
|
||||||
startActivity(intent)
|
startActivityExternal(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun showSupport() {
|
fun showSupport() {
|
||||||
@@ -224,7 +224,7 @@ class Navigator @Inject constructor(
|
|||||||
.setType("text/plain")
|
.setType("text/plain")
|
||||||
.putExtra(Intent.EXTRA_TEXT, "http://qklabs.com/download")
|
.putExtra(Intent.EXTRA_TEXT, "http://qklabs.com/download")
|
||||||
.let { Intent.createChooser(it, null) }
|
.let { Intent.createChooser(it, null) }
|
||||||
.let(this::startActivityExternal)
|
.let(::startActivityExternal)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addContact(address: String) {
|
fun addContact(address: String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user