Commit d8ddad5b authored by Ricki Hirner's avatar Ricki Hirner 🐑

Improve preview release startup fragment

parent 2ad3bc92
Pipeline #9544489 failed with stage
in 3 minutes and 45 seconds
...@@ -130,7 +130,7 @@ public class StartupDialogFragment extends DialogFragment { ...@@ -130,7 +130,7 @@ public class StartupDialogFragment extends DialogFragment {
return new AlertDialog.Builder(getActivity()) return new AlertDialog.Builder(getActivity())
.setIcon(R.mipmap.ic_launcher) .setIcon(R.mipmap.ic_launcher)
.setTitle(R.string.startup_development_version) .setTitle(R.string.startup_development_version)
.setMessage(R.string.startup_development_version_message) .setMessage(getString(R.string.startup_development_version_message, getString(R.string.app_name)))
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
...@@ -139,7 +139,7 @@ public class StartupDialogFragment extends DialogFragment { ...@@ -139,7 +139,7 @@ public class StartupDialogFragment extends DialogFragment {
.setNeutralButton(R.string.startup_development_version_give_feedback, new DialogInterface.OnClickListener() { .setNeutralButton(R.string.startup_development_version_give_feedback, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://forums.bitfire.at/category/9/beta-test-discussion"))); startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(getString(R.string.startup_development_version_feedback_url))));
} }
}) })
.create(); .create();
......
...@@ -27,9 +27,10 @@ ...@@ -27,9 +27,10 @@
<string name="startup_battery_optimization_message">Android may disable/reduce DAVdroid synchronization after a few days. To prevent this, turn off battery optimization.</string> <string name="startup_battery_optimization_message">Android may disable/reduce DAVdroid synchronization after a few days. To prevent this, turn off battery optimization.</string>
<string name="startup_battery_optimization_disable">Turn off for DAVdroid</string> <string name="startup_battery_optimization_disable">Turn off for DAVdroid</string>
<string name="startup_dont_show_again">Don\'t show again</string> <string name="startup_dont_show_again">Don\'t show again</string>
<string name="startup_development_version">DAVdroid Preview Release</string> <string name="startup_development_version">Preview Release</string>
<string name="startup_development_version_message">This is a development version of DAVdroid. Be aware that things may not work as expected. Please give us constructive feedback to improve DAVdroid.</string> <string name="startup_development_version_message">This is a development version of %s. Things may not work as expected. Your feedback is welcome.</string>
<string name="startup_development_version_give_feedback">Give feedback</string> <string name="startup_development_version_give_feedback">Give feedback</string>
<string name="startup_development_version_feedback_url">https://davdroid.bitfire.at/forums/?pk_campaign=davdroid-app</string>
<string name="startup_donate">Open-Source Information</string> <string name="startup_donate">Open-Source Information</string>
<string name="startup_donate_message">We\'re happy that you use DAVdroid, which is open-source software (GPLv3). Because developing DAVdroid is hard work and took us thousands of working hours, please consider a donation.</string> <string name="startup_donate_message">We\'re happy that you use DAVdroid, which is open-source software (GPLv3). Because developing DAVdroid is hard work and took us thousands of working hours, please consider a donation.</string>
<string name="startup_donate_now">Show donation page</string> <string name="startup_donate_now">Show donation page</string>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment