Skip to content

Commit

Permalink
[Android] Added a small Toast when clicking the donate button
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiaraujo committed Jul 12, 2013
1 parent 854a248 commit f2ebe13
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions android/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<string name="update_message">La versión<xliff:g id="version">%1$s</xliff:g> está disponible. Ve al sitio Web para descargarla.</string>
<string name="cancel_download">¿Quieres cancelar la descarga del diccionario?</string>
<string name="cancel_auto_test">¿Quieres cancelar la prueba de las claves?</string>
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string> <!-- UNTRANSLATED -->
<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Activar WiFi automáticamente.</string>
<string name="pref_hintoff_wifion">No activar WiFi automáticamente.</string>
Expand Down
1 change: 1 addition & 0 deletions android/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<string name="update_message">La version <xliff:g id="version">%1$s</xliff:g> est disponible. Télécharger la dernière version sur notre site web.</string>
<string name="cancel_download">Annuler le téléchargement du dictionnaire ?</string>
<string name="cancel_auto_test">Annuler le test des clefs ?</string>
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string> <!-- UNTRANSLATED -->

<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Activer le Wifi automatiquement</string>
Expand Down
1 change: 1 addition & 0 deletions android/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<string name="networklist_supported">Supported</string> <!-- UNTRANSLATED -->
<string name="networklist_unlikely_supported">Unlikely Supported</string> <!-- UNTRANSLATED -->
<string name="networklist_unsupported">Unsupported</string> <!-- UNTRANSLATED -->
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string> <!-- UNTRANSLATED -->

<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Attivare il wifi automaticamente</string>
Expand Down
1 change: 1 addition & 0 deletions android/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<string name="update_message">Versie <xliff:g id="version">%1$s</xliff:g> is beschikbaar. Ga naar de website om deze versie te downloaden</string>
<string name="cancel_download">Woordenboek downloaden annuleren?</string>
<string name="cancel_auto_test">Knoppen testen annuleren?</string>
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string> <!-- UNTRANSLATED -->

<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Wi-Fi automatisch inschakelen</string>
Expand Down
1 change: 1 addition & 0 deletions android/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<string name="update_message">Está disponível a versão <xliff:g id="version">%1$s</xliff:g>. Abra o Website para descarregar a última versão.</string>
<string name="cancel_download">Deseja cancelar a transferência do dicionário?</string>
<string name="cancel_auto_test">Deseja cancelar o teste das senhas?</string>
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string> <!-- UNTRANSLATED -->

<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Activar automaticamente o Wifi</string>
Expand Down
1 change: 1 addition & 0 deletions android/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<string name="update_message">There is version <xliff:g id="version">%1$s</xliff:g> available. Go to the website to download the latest version.</string>
<string name="cancel_download">Do you want to cancel the dictionary download?</string>
<string name="cancel_auto_test">Do you want to cancel the keys testing?</string>
<string name="msg_donation">Install the following app to remove the ads and to donate. Thank you! :-)</string>
<!-- PREFERENCES STRINGS -->
<string name="pref_hinton_wifion">Activate the Wifi Automatically</string>
<string name="pref_hintoff_wifion">Do not activate the Wifi Automatically</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void run() {
}
}).start();
}
//Checking for updates every week
// Checking for updates every week
startService(new Intent(getApplicationContext(),
UpdateCheckerService.class));
if (!AdsUtils.checkDonation(this)) {
Expand Down Expand Up @@ -147,6 +147,9 @@ public void onClick(DialogInterface dialog,
Uri.parse("http://play.google.com/store/apps/details?id="
+ Preferences.GOOGLE_PLAY_DOWNLOADER)));
}
Toast.makeText(getApplicationContext(),
R.string.msg_donation,
Toast.LENGTH_LONG).show();
dialog.dismiss();
}
}).show();
Expand Down Expand Up @@ -224,8 +227,6 @@ public void onStart() {
}
}
}



@Override
public void onResume() {
Expand All @@ -242,7 +243,6 @@ public void onResume() {
scan();
}


@Override
public void onPause() {
super.onPause();
Expand Down
4 changes: 3 additions & 1 deletion android/src/org/exobel/routerkeygen/ui/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ public boolean onPreferenceClick(Preference preference) {
Uri.parse("http://play.google.com/store/apps/details?id="
+ GOOGLE_PLAY_DOWNLOADER)));
}

Toast.makeText(getApplicationContext(),
R.string.msg_donation,
Toast.LENGTH_LONG).show();
return true;
}
});
Expand Down

0 comments on commit f2ebe13

Please sign in to comment.