mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
use Intent.CATEGORY_APP_MAIN instead of hardcoded reference to play store
This commit is contained in:
parent
0553d5eb4c
commit
c6fe8dc405
5 changed files with 8 additions and 11 deletions
|
@ -68,15 +68,12 @@ SettingsFragmentActions : Fragment(), UIObject {
|
|||
}
|
||||
binding!!.settingsActionsButtonInstallApps.setOnClickListener{
|
||||
try {
|
||||
val rateIntent = Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse("https://play.google.com/store/apps/"))
|
||||
|
||||
val intent = Intent(Intent.ACTION_MAIN)
|
||||
intent.addCategory(Intent.CATEGORY_APP_MARKET)
|
||||
intendedSettingsPause = true
|
||||
startActivity(rateIntent)
|
||||
startActivity(intent)
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
Toast.makeText(this.context, getString(R.string.settings_apps_toast_store_not_found), Toast.LENGTH_SHORT)
|
||||
.show()
|
||||
Toast.makeText(context, getString(R.string.settings_apps_toast_store_not_found), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<string name="settings_apps_view_all">Alle Anwendungen</string>
|
||||
|
||||
<string name="settings_apps_install">Apps installieren</string>
|
||||
<string name="settings_apps_toast_store_not_found">PlayStore nicht gefunden</string>
|
||||
<string name="settings_apps_toast_store_not_found">Store nicht gefunden</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<string name="settings_apps_view_all">Todas las aplicaciones</string>
|
||||
|
||||
<string name="settings_apps_install">Instalar aplicaciones</string>
|
||||
<string name="settings_apps_toast_store_not_found">No se encontró la PlayStore</string>
|
||||
<string name="settings_apps_toast_store_not_found">No se encontró la Store</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<string name="settings_apps_view_all">Toutes les applications</string>
|
||||
|
||||
<string name="settings_apps_install">Installer applications</string>
|
||||
<string name="settings_apps_toast_store_not_found">Pas trouvé le PlayStore</string>
|
||||
<string name="settings_apps_toast_store_not_found">Pas trouvé le Store</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<string name="settings_apps_view_all">View all apps</string>
|
||||
|
||||
<string name="settings_apps_install">Install apps</string>
|
||||
<string name="settings_apps_toast_store_not_found">PlayStore not found</string>
|
||||
<string name="settings_apps_toast_store_not_found">Store not found</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
Loading…
Add table
Reference in a new issue