Skip to content

Commit d5d3e78

Browse files
committed
Version 1.6.3: crash fix (from mediautilities) and app store link
1 parent 6185812 commit d5d3e78

File tree

13 files changed

+66
-6
lines changed

13 files changed

+66
-6
lines changed

MediaPhone/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010

1111
targetSdkVersion 29
1212
minSdkVersion 14
13-
versionCode 44
14-
versionName '1.6.2'
13+
versionCode 45
14+
versionName '1.6.3'
1515
// versionNameSuffix = '-beta-1'
1616
resConfigs 'en', 'es', 'fr', 'nl', 'pt', 'pl', 'ru'
1717
}
@@ -49,7 +49,7 @@ dependencies {
4949
implementation project(':MediaUtilities')
5050

5151
implementation 'com.google.android.material:material:1.2.1' // for overall UI appearance
52-
implementation 'androidx.exifinterface:exifinterface:1.2.0' // for auto-selection of export resolution
53-
implementation 'androidx.core:core:1.3.1' // for FileProvider
52+
implementation 'androidx.exifinterface:exifinterface:1.3.0' // for auto-selection of export resolution
53+
implementation 'androidx.core:core:1.3.2' // for FileProvider
5454
implementation 'androidx.documentfile:documentfile:1.0.1' // for Storage Access Framework
5555
}

MediaPhone/src/main/java/ac/robinson/mediaphone/activity/PreferencesActivity.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,25 @@ public boolean onPreferenceClick(Preference preference) {
434434
}
435435
});
436436

437+
// add the app store button
438+
Preference appStorePreference = (PreferenceScreen) preferenceScreen.findPreference(getString(R.string.key_app_store));
439+
appStorePreference.setSummary(getString(R.string.preferences_app_store_summary, getString(R.string.app_name)));
440+
appStorePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
441+
@Override
442+
public boolean onPreferenceClick(Preference preference) {
443+
Intent intent = new Intent(Intent.ACTION_VIEW);
444+
intent.setData(Uri.parse("market://details?id=" + BuildConfig.APPLICATION_ID));
445+
// intent.setPackage("com.android.vending"); // to force Google Play
446+
447+
try {
448+
startActivity(intent);
449+
} catch (ActivityNotFoundException e) {
450+
UIUtilities.showToast(PreferencesActivity.this, R.string.preferences_app_store_error);
451+
}
452+
return true;
453+
}
454+
});
455+
437456
// add version and build information
438457
Preference aboutPreference = preferenceScreen.findPreference(getString(R.string.key_about_application));
439458
try {

MediaPhone/src/main/res/values-es/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">OK</string>
68
<string name="button_save">Guardar</string>
@@ -277,6 +279,9 @@
277279
<string name="preferences_contact_us_summary">Envíanos tus comentarios, o infórmanos de un problema</string>
278280
<string name="preferences_contact_us_email_body">Por favor, ingrese sus comentarios aquí. Si está informando un problema, describa lo que ocurre con el mayor detalle posible.\n\n\n\n\nVersión de aplicación (deje esto en su lugar): %1$s</string>
279281
<string name="preferences_contact_us_email_error">Error: no se puede enviar comentarios – envíe un correo electrónico %1$s en su lugar</string>
282+
<string name="preferences_app_store_title">Visita la tienda de aplicaciones</string>
283+
<string name="preferences_app_store_summary">Añade una revisión o descarga la última actualización de %1$s</string>
284+
<string name="preferences_app_store_error">Error: No se puede abrir la página de aplicaciones – no se encuentra la tienda de aplicaciones</string>
280285
<string name="preferences_install_helper_narrative_title">Ayuda y consejos</string>
281286
<string name="preferences_install_helper_narrative_summary">Toca para agregar una narrativa que contenga ayuda y sugerencias</string>
282287
<string name="preferences_install_helper_narrative_success">La narrativa de ayuda y consejos ha sido instalada</string>

MediaPhone/src/main/res/values-fr/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">OK</string>
68
<string name="button_save">Enregistrer</string>
@@ -277,6 +279,9 @@
277279
<string name="preferences_contact_us_summary">Nous envoyer vos commentaires par mail ou signaler un problème</string>
278280
<string name="preferences_contact_us_email_body">Merci d\'écrire votre commentaire ici. Si vous signalez un problème, merci de décrire ce qui se passe avec le plus de détails possible.\n\n\n\n\nVersion de l\'application (merci de ne pas y toucher): %1$s</string>
279281
<string name="preferences_contact_us_email_error">Erreur : impossible d\'envoyer un commentaire – merci d\'envoyer un mail à %1$s </string>
282+
<string name="preferences_app_store_title">Visitez l\'app store</string>
283+
<string name="preferences_app_store_summary">Ajouter un commentaire ou télécharger la dernière mise à jour %1$s</string>
284+
<string name="preferences_app_store_error">Erreur: Impossible d\'ouvrir la page de l\'application – aucun magasin d\'applications trouvé</string>
280285
<string name="preferences_install_helper_narrative_title">Aide et conseils</string>
281286
<string name="preferences_install_helper_narrative_summary">Tapez pour ajouter un récit d\'aide et de conseils</string>
282287
<string name="preferences_install_helper_narrative_success">Le récit d\'aide et de conseils a été installé</string>

MediaPhone/src/main/res/values-nl/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">Oké</string>
68
<string name="button_save">Opslaan</string>
@@ -277,6 +279,9 @@
277279
<string name="preferences_contact_us_summary">Stuur ons een e-mail met je feedback of probleem</string>
278280
<string name="preferences_contact_us_email_body">Voer hier je feedback in. Als je een probleem meldt, omschrijf dan zo gedetailleerd mogelijk wat er precies gebeurde.\n\n\n\n\nApp-versie (haal dit niet weg): %1$s</string>
279281
<string name="preferences_contact_us_email_error">Fout: feedback kan niet worden verstuurd – stuur een e-mail aan %1$s</string>
282+
<string name="preferences_app_store_title">Bezoek de app store</string>
283+
<string name="preferences_app_store_summary">Voeg een beoordeling toe of download de laatste %1$s update</string>
284+
<string name="preferences_app_store_error">Fout: Niet in staat om de app-pagina te openen – geen app-store gevonden</string>
280285
<string name="preferences_install_helper_narrative_title">Hulp en tips</string>
281286
<string name="preferences_install_helper_narrative_summary">Druk om een verhaallijn toe te voegen die bestaat uit hulpballonnen en tips</string>
282287
<string name="preferences_install_helper_narrative_success">De verhaallijn met hulpballonnen en tips is klaar voor gebruik</string>

MediaPhone/src/main/res/values-pl/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">OK</string>
68
<string name="button_save">Zapisz</string>
@@ -279,6 +281,9 @@
279281
<string name="preferences_contact_us_summary">Wyślij swoją opinię lub raport błędu e-mailem</string>
280282
<string name="preferences_contact_us_email_body">Proszę podać swoją opinię tutaj. Jeśli raportujesz błąd opisz proszę możliwie najwięcej detali. \n\n\n\n\nWersja aplikacji (please leave this in place): %1$s</string>
281283
<string name="preferences_contact_us_email_error">Błąd: nie można przesłać opinii – proszę wyślij nam email zamiast tego na adres %1$s</string>
284+
<string name="preferences_app_store_title">Odwiedź app store</string>
285+
<string name="preferences_app_store_summary">Dodaj recenzję lub pobierz najnowszą aktualizację %1$s</string>
286+
<string name="preferences_app_store_error">Błąd: Nie można otworzyć strony aplikacji – nie znaleziono sklepu z aplikacjami</string>
282287
<string name="preferences_install_helper_narrative_title">Pomoc i porady</string>
283288
<string name="preferences_install_helper_narrative_summary">Dotknij aby dodać narrację zawierającą pomoc i porady</string>
284289
<string name="preferences_install_helper_narrative_success">Pomoc i porady dla narracji zostały zainstalowane</string>

MediaPhone/src/main/res/values-pt/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">OK</string>
68
<string name="button_save">Salvar</string>
@@ -277,6 +279,9 @@
277279
<string name="preferences_contact_us_summary">Envie-nos seus comentários por e-mail, ou relate um problema</string>
278280
<string name="preferences_contact_us_email_body">Por favor, insira seus comentários aqui. Se está relatando um problema, por favor descreva o que acontece com o máximo de detalhes que conseguir\n\n\n\n\nVersão do aplicativo (por favor, não apague isso, ou mude de lugar): %1$s</string>
279281
<string name="preferences_contact_us_email_error">Erro: não foi possível enviar os comentários – por favor, mande %1$s um email ao invés</string>
282+
<string name="preferences_app_store_title">Visite a loja app</string>
283+
<string name="preferences_app_store_summary">Adicionar uma revisão ou baixar a última atualização %1$s</string>
284+
<string name="preferences_app_store_error">Erro: Não foi possível abrir a página do aplicativo – nenhuma loja de aplicativos foi encontrada</string>
280285
<string name="preferences_install_helper_narrative_title">Ajuda e dicas</string>
281286
<string name="preferences_install_helper_narrative_summary">Toque para adicionar uma narrativa contendo ajuda e dicas</string>
282287
<string name="preferences_install_helper_narrative_success">A narrativa de ajuda e dicas foi instalada</string>

MediaPhone/src/main/res/values-ru/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
5+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
46
<!-- defaults/generic -->
57
<string name="button_ok">OK</string>
68
<string name="button_save">Сохранить</string>
@@ -279,6 +281,9 @@
279281
<string name="preferences_contact_us_summary">Отошлите нам ваши комментарии по электронной почте или сообщите о проблеме</string>
280282
<string name="preferences_contact_us_email_body">Пожалуйста введите ваши комментарии. Если вы отправляете сообщение о неполадке, пожалуйста опишите как можно детальнее, что происходит.\n\n\n\n\nApplication version (please leave this in place): %1$s</string>
281283
<string name="preferences_contact_us_email_error">Ошибка: не удалось отправить отчет – пожалуйста, отправьте его на email %1$s</string>
284+
<string name="preferences_app_store_title">Посетите магазин приложений</string>
285+
<string name="preferences_app_store_summary">Добавить обзор или загрузить последнее обновление %1$s</string>
286+
<string name="preferences_app_store_error">Ошибка: Невозможно открыть страницу приложения – магазин приложений не найден</string>
282287
<string name="preferences_install_helper_narrative_title">Помощь и практические советы</string>
283288
<string name="preferences_install_helper_narrative_summary">Коснитесь, чтобы добавить историю, содержащую помощь и практические советы</string>
284289
<string name="preferences_install_helper_narrative_success">Помощь и практические советы установлены</string>

MediaPhone/src/main/res/values/attrs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
<string name="key_about_category" translatable="false">about_category</string>
162162
<string name="key_about_application" translatable="false">about_application</string>
163163
<string name="key_contact_us" translatable="false">contact_us</string>
164+
<string name="key_app_store" translatable="false">app_store</string>
164165
<string name="key_install_helper_narrative" translatable="false">install_helper_narrative</string>
165166

166167
<!-- keys for hidden "preferences" -->

MediaPhone/src/main/res/values/strings.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<!-- application properties -->
55
<string name="app_name" translatable="false">Com-Phone</string>
66

7+
<!-- TODO: improve handling of frame thumbnail descriptions - rather than R.string.frame_thumbnail_description_generic, -->
8+
<!-- TODO: make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
79
<!-- defaults/generic -->
810
<string name="button_ok">OK</string>
911
<string name="button_save">Save</string>
@@ -13,7 +15,7 @@
1315
<string name="current_value_as_sentence">Current: %1$s.</string>
1416
<string name="frame_image_description">The image for this frame</string>
1517
<string name="frame_thumbnail_description_button">Add a new frame</string>
16-
<string name="frame_thumbnail_description_generic">Frame %1$d thumbnail image</string><!-- TODO: improve handling of this issue - make sure that individual frame details (i.e., A frame with image and text "content") are spoken in TalkBack -->
18+
<string name="frame_thumbnail_description_generic">Frame %1$d thumbnail image</string>
1719
<string name="zero_length_audio" translatable="false">0:00.0</string>
1820
<string name="seconds">seconds</string>
1921

@@ -293,6 +295,9 @@
293295
<string name="preferences_contact_us_email_subject" translatable="false">%1$s feedback (%2$s)</string>
294296
<string name="preferences_contact_us_email_body">Please enter your feedback here. If you are reporting a problem, please describe what happens in as much detail as possible.\n\n\n\n\nApplication version (please leave this in place): %1$s</string>
295297
<string name="preferences_contact_us_email_error">Error: unable to send feedback – please email %1$s instead</string>
298+
<string name="preferences_app_store_title">Visit app store</string>
299+
<string name="preferences_app_store_summary">Add a review or download the latest %1$s update</string>
300+
<string name="preferences_app_store_error">Error: Unable to open app page – no app store found</string>
296301
<string name="preferences_install_helper_narrative_title">Help and tips</string>
297302
<string name="preferences_install_helper_narrative_summary">Tap to add a narrative containing help and tips</string>
298303
<string name="preferences_install_helper_narrative_success">The help and tips narrative has been installed</string>

0 commit comments

Comments
 (0)