Setting dialog for task rabbit title

pull/14/head
Andrew Shaw 13 years ago
parent 5b4b7bd7b7
commit a14ad3aaaf

@ -188,10 +188,10 @@ public class TaskRabbitActivity extends FragmentActivity {
public void showIntroDialog() {
if (!Preferences.getBoolean(TASK_RABBIT_DIALOG_INTRO_PREF, false)) {
if (TaskRabbitLocationManager.supportsCurrentLocation(currentLocation)) {
AlertDialog.Builder adb = new AlertDialog.Builder(TaskRabbitActivity.this);
adb.setTitle(R.string.tr_alert_intro_title);
adb.setMessage(getString(R.string.tr_alert_intro_location));
adb.setPositiveButton(getString(R.string.tr_alert_button_close), new DialogInterface.OnClickListener() {
public void onClick(final DialogInterface dialog, final int id) {
@ -202,6 +202,7 @@ public class TaskRabbitActivity extends FragmentActivity {
}
else {
final AlertDialog adb = new AlertDialog.Builder(TaskRabbitActivity.this)
.setTitle(R.string.tr_alert_intro_title)
.setMessage(R.string.tr_alert_intro_no_location)
.setPositiveButton(getString(R.string.tr_alert_button_close),null)
.show();

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains preference keys and preference list values.
These should not be translated
This file contains task rabbit keys and strings.
Currently does not need to be translated because it's only enabled in US
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
@ -415,6 +415,7 @@
<string name="tr_alert_internet_message_fail">Internet connection could not be found. Please check your connection and try again.</string>
<string name="tr_alert_intro_title">Welcome to TaskRabbit!</string>
<string name="tr_alert_intro_location">TaskRabbit is an inexpensive way to delegate tasks to trust-worthy people in your area.</string>
<string name="tr_alert_intro_no_location">TaskRabbit is an inexpensive way to delegate tasks to trust-worthy people but it isn\'t yet available in your location. You can use it to assign virtual tasks or tasks in <a href="http://www.taskrabbit.com/pickacity">supported locations</a></string>

Loading…
Cancel
Save