Allow toggling of SIA integration, and direct user to play store if not installed

This commit is contained in:
Moez Bhatti
2018-04-06 02:32:39 -04:00
parent 956b8c2b8d
commit 137280403e
13 changed files with 119 additions and 44 deletions
@@ -145,6 +145,15 @@ class Navigator @Inject constructor(private val context: Context, private val no
startActivityExternal(intent)
}
/**
* Launch the Play Store and display the Should I Answer? listing
*/
fun showSia() {
val url = "https://play.google.com/store/apps/details?id=org.mistergroup.shouldianswerpersonal"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(intent)
}
fun showSupport() {
val intent = Intent(Intent.ACTION_SENDTO)
intent.data = Uri.parse("mailto:")