Update negative feedback prompt with new url

pull/14/head
Sam Bosley 12 years ago
parent 8f24150f9d
commit f37176b073

@ -979,13 +979,15 @@ Astrid is open-source and proudly maintained by Todoroo, Inc.</string>
<string name="feedback_positive_body">Glad I\'m helpful! Got a moment to help us with a 5-star rating?</string>
<string name="feedback_negative_title">Rate Astrid?</string>
<string name="feedback_negative_title">Leave feedback?</string>
<string name="feedback_negative_body">Sorry to hear that we\'re having issues</string>
<string name="feedback_activity_error">Oops! We weren\'t able to launch the market feedback section--it might not be available on your device.</string>
<string name="feedback_button">Rate Astrid</string>
<string name="feedback_positive_button">Rate Astrid</string>
<string name="feedback_negative_button">Leave feedback</string>
<string name="feedback_not_now">Not now</string>

@ -10,21 +10,25 @@ import com.todoroo.astrid.activity.AstridActivity;
public class FeedbackPromptDialogs {
@SuppressWarnings("nls")
public static void showFeedbackDialog(final AstridActivity activity, boolean positive) {
final AstridDialog d = new AstridDialog(activity, false);
int titleRes = positive ? R.string.feedback_positive_title : R.string.feedback_negative_title;
int bodyRes = positive ? R.string.feedback_positive_body : R.string.feedback_negative_body;
int buttonRes = positive ? R.string.feedback_positive_button : R.string.feedback_negative_button;
final String url = positive ? "https://play.google.com/store/apps/details?id=com.timsu.astrid&write_review=true" : "http://weloveastrid.com/problem_astrid_android.html";
d.setAstridTitle(titleRes)
.setAstridText(bodyRes)
.setButtonText(R.string.feedback_button, 0)
.setButtonText(buttonRes, 0)
.setButtonText(R.string.feedback_not_now, 1)
.setButtonListeners(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/details?id=com.timsu.astrid&write_review=true")); //$NON-NLS-1$
Uri.parse(url));
try {
activity.startActivity(intent);
} catch (Exception e) {

Loading…
Cancel
Save