adding an explanation how to retrieve the launcher icon

This commit is contained in:
tibbi 2017-11-06 20:56:43 +01:00
parent f82c8b9452
commit 328912dc25
15 changed files with 32 additions and 7 deletions

View File

@ -4,6 +4,7 @@ import android.content.ComponentName
import android.content.pm.PackageManager import android.content.pm.PackageManager
import android.os.Bundle import android.os.Bundle
import com.simplemobiletools.commons.activities.BaseSimpleActivity import com.simplemobiletools.commons.activities.BaseSimpleActivity
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.thankyou.R import com.simplemobiletools.thankyou.R
import com.simplemobiletools.thankyou.extensions.config import com.simplemobiletools.thankyou.extensions.config
@ -33,6 +34,17 @@ class SettingsActivity : BaseSimpleActivity() {
private fun setupHideLauncherIcon() { private fun setupHideLauncherIcon() {
settings_hide_launcher_icon.isChecked = config.hideLauncherIcon settings_hide_launcher_icon.isChecked = config.hideLauncherIcon
settings_hide_launcher_icon_holder.setOnClickListener { settings_hide_launcher_icon_holder.setOnClickListener {
if (config.hideLauncherIcon) {
toggleHideLauncherIcon()
} else {
ConfirmationDialog(this, "", R.string.hide_launcher_icon_explanation, R.string.ok, R.string.cancel) {
toggleHideLauncherIcon()
}
}
}
}
private fun toggleHideLauncherIcon() {
settings_hide_launcher_icon.toggle() settings_hide_launcher_icon.toggle()
config.hideLauncherIcon = settings_hide_launcher_icon.isChecked config.hideLauncherIcon = settings_hide_launcher_icon.isChecked
@ -40,5 +52,4 @@ class SettingsActivity : BaseSimpleActivity() {
val state = if (config.hideLauncherIcon) PackageManager.COMPONENT_ENABLED_STATE_DISABLED else PackageManager.COMPONENT_ENABLED_STATE_ENABLED val state = if (config.hideLauncherIcon) PackageManager.COMPONENT_ENABLED_STATE_DISABLED else PackageManager.COMPONENT_ENABLED_STATE_ENABLED
packageManager.setComponentEnabledSetting(componentName, state, PackageManager.DONT_KILL_APP) packageManager.setComponentEnabledSetting(componentName, state, PackageManager.DONT_KILL_APP)
} }
}
} }

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -1,10 +1,11 @@
<resources> <resources>
<string name="app_name">Jednoduché ďakujem</string> <string name="app_name">Jednoduché ďakujem</string>
<string name="app_launcher_name">Ďakujem</string> <string name="app_launcher_name">Ďakujem</string>
<string name="main_text">Ďakujem za našu podporu!\nNapíšte nám na \n hello@simplemobiletools.com,\n chceme počuť každú spätnú väzbu a odporúčania.\n\n(Prosím ponechajte si aplikáciu nainštalovanú aspoň 1 deň, predídete tak automatickému vráteniu peňazí)</string> <string name="main_text">Ďakujem za vašu podporu!\nNapíšte nám na \n hello@simplemobiletools.com,\n chceme počuť každú spätnú väzbu a odporúčania.\n\n(Prosím ponechajte si aplikáciu nainštalovanú aspoň 1 deň, predídete tak automatickému vráteniu peňazí)</string>
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Skryť spúšťaciu ikonku</string> <string name="hide_launcher_icon">Skryť spúšťaciu ikonku</string>
<string name="hide_launcher_icon_explanation">Na opätovné zobrazenie ikonky budete musieť preinštalovať apku. Nebojte sa, už nebudete musieť platiť.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->

View File

@ -5,6 +5,7 @@
<!-- Settings --> <!-- Settings -->
<string name="hide_launcher_icon">Hide the launcher icon</string> <string name="hide_launcher_icon">Hide the launcher icon</string>
<string name="hide_launcher_icon_explanation">To have the launcher icon displayed again, you will have to reinstall the app. Don\'t worry, you won\'t have to pay again.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have --> <!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars --> <!-- Short description has to have less than 80 chars -->