Updated play-store link click

This commit is contained in:
Anthonyy232 committed 2024-05-26 20:57:51 -07:00
1 parent fff8b241c0
commit 3df28a3a9a
1 file changed
+4 -9
@@ -72,10 +72,10 @@ fun SettingsScrollableSettings(
toContact = false toContact = false
} }
val translateLink = "https://crowdin.com/project/paperize/invite?h=d8d7a7513d2beb0c96ba9b2a5f85473e2084922"
val githubLink = "https://github.com/Anthonyy232/Paperize" val githubLink = "https://github.com/Anthonyy232/Paperize"
val playstoreLink = "https://play.google.com/store/apps/details?id=com.anthonyla.paperize" val playstoreLink = "https://play.google.com/store/apps/details?id=com.anthonyla.paperize"
val fdroidLink = "" val fdroidLink = ""
val translateLink = "https://crowdin.com/project/paperize/invite?h=d8d7a7513d2beb0c96ba9b2a5f85473e2084922"
Scaffold( Scaffold(
snackbarHost = { snackbarHost = {
@@ -162,14 +162,9 @@ fun SettingsScrollableSettings(
context.startActivity(openURL) context.startActivity(openURL)
}, },
onPlaystoreClick = { onPlaystoreClick = {
coroutineScope.launch { val openURL = Intent(Intent.ACTION_VIEW)
snackbarHostState.currentSnackbarData?.dismiss() openURL.data = Uri.parse(playstoreLink)
snackbarHostState.showSnackbar( context.startActivity(openURL)
message = context.getString(R.string.coming_soon),
actionLabel = context.getString(R.string.dismiss),
duration = SnackbarDuration.Short
)
}
}, },
onFdroidClick = { onFdroidClick = {
coroutineScope.launch { coroutineScope.launch {