mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 21:28:49 +00:00
ErrorReporter: Link to the market the app was installed from, rather than hardcoding Google Play.
This commit is contained in:
parent
8dc28f01c5
commit
973b2011c5
4 changed files with 8 additions and 8 deletions
|
@ -326,7 +326,6 @@
|
||||||
<string name="alert_crash_report_new_version">Es gibt eine neue Öffi-Version %s. Du solltest aktualisieren, denn möglicherweise wurde dein Problem schon behoben.</string>
|
<string name="alert_crash_report_new_version">Es gibt eine neue Öffi-Version %s. Du solltest aktualisieren, denn möglicherweise wurde dein Problem schon behoben.</string>
|
||||||
<string name="alert_crash_report_message">Möchtest du einen Fehlerbericht senden, um dabei zu helfen das Problem zu lösen?</string>
|
<string name="alert_crash_report_message">Möchtest du einen Fehlerbericht senden, um dabei zu helfen das Problem zu lösen?</string>
|
||||||
<string name="alert_crash_report_positive">Senden</string>
|
<string name="alert_crash_report_positive">Senden</string>
|
||||||
<string name="alert_crash_report_update">Google Play</string>
|
|
||||||
<string name="alert_crash_report_download">Herunterladen</string>
|
<string name="alert_crash_report_download">Herunterladen</string>
|
||||||
<string name="alert_crash_report_negative">Schließen</string>
|
<string name="alert_crash_report_negative">Schließen</string>
|
||||||
<string name="notification_channel_appwidget_name">App-Widget-Aktivität</string>
|
<string name="notification_channel_appwidget_name">App-Widget-Aktivität</string>
|
||||||
|
|
|
@ -327,7 +327,6 @@
|
||||||
<string name="alert_crash_report_new_version">There is a new Offi version %s available. You should update, as your problem might already have been fixed.</string>
|
<string name="alert_crash_report_new_version">There is a new Offi version %s available. You should update, as your problem might already have been fixed.</string>
|
||||||
<string name="alert_crash_report_message">Would you like to send a crash report, helping to fix this issue in the future?</string>
|
<string name="alert_crash_report_message">Would you like to send a crash report, helping to fix this issue in the future?</string>
|
||||||
<string name="alert_crash_report_positive">Send</string>
|
<string name="alert_crash_report_positive">Send</string>
|
||||||
<string name="alert_crash_report_update">Google Play</string>
|
|
||||||
<string name="alert_crash_report_download">Download</string>
|
<string name="alert_crash_report_download">Download</string>
|
||||||
<string name="alert_crash_report_negative">Dismiss</string>
|
<string name="alert_crash_report_negative">Dismiss</string>
|
||||||
<string name="notification_channel_appwidget_name">App-widget activity</string>
|
<string name="notification_channel_appwidget_name">App-widget activity</string>
|
||||||
|
|
|
@ -31,7 +31,6 @@ public class Constants {
|
||||||
public static final String PLAN_STATIONS_FILENAME = "plans-stations.txt";
|
public static final String PLAN_STATIONS_FILENAME = "plans-stations.txt";
|
||||||
|
|
||||||
public static final String MARKET_APP_URL = "market://details?id=%s";
|
public static final String MARKET_APP_URL = "market://details?id=%s";
|
||||||
public static final String GOOGLE_PLAY_APP_URL = "https://play.google.com/store/apps/details?id=%s";
|
|
||||||
public static final String BITCOIN_ADDRESS = "bc1q8ruc8hanp7hrzfs48dvtuzz4ukmpe7cgsvvzrt";
|
public static final String BITCOIN_ADDRESS = "bc1q8ruc8hanp7hrzfs48dvtuzz4ukmpe7cgsvvzrt";
|
||||||
|
|
||||||
public static final String REPORT_EMAIL = "oeffi.app@gmail.com";
|
public static final String REPORT_EMAIL = "oeffi.app@gmail.com";
|
||||||
|
|
|
@ -362,11 +362,14 @@ public class ErrorReporter implements Thread.UncaughtExceptionHandler {
|
||||||
: context.getString(R.string.alert_crash_report_message));
|
: context.getString(R.string.alert_crash_report_message));
|
||||||
builder.setNegativeButton(R.string.alert_crash_report_negative, (dialog, which) -> stackTraceFile.delete());
|
builder.setNegativeButton(R.string.alert_crash_report_negative, (dialog, which) -> stackTraceFile.delete());
|
||||||
if (newVersion != null) {
|
if (newVersion != null) {
|
||||||
builder.setNeutralButton(R.string.alert_crash_report_update, (dialog, which) -> {
|
final Installer installer = Installer.from(context);
|
||||||
stackTraceFile.delete();
|
if (installer != null) {
|
||||||
context.startActivity(new Intent(Intent.ACTION_VIEW,
|
builder.setNeutralButton(installer.displayName, (dialog, which) -> {
|
||||||
Uri.parse("market://details?id=" + context.getPackageName())));
|
stackTraceFile.delete();
|
||||||
});
|
context.startActivity(new Intent(Intent.ACTION_VIEW,
|
||||||
|
Uri.parse("market://details?id=" + context.getPackageName())));
|
||||||
|
});
|
||||||
|
}
|
||||||
builder.setPositiveButton(R.string.alert_crash_report_download, (dialog, which) -> {
|
builder.setPositiveButton(R.string.alert_crash_report_download, (dialog, which) -> {
|
||||||
stackTraceFile.delete();
|
stackTraceFile.delete();
|
||||||
context.startActivity(
|
context.startActivity(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue