From d0fb57f959de4ccdd7db16cd694dd51284e208c8 Mon Sep 17 00:00:00 2001 From: ligi Date: Wed, 12 Mar 2014 18:41:12 +0530 Subject: [PATCH] extract string --- src/main/java/org/ligi/passandroid/ui/UnzipPassDialog.java | 3 ++- src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/ligi/passandroid/ui/UnzipPassDialog.java b/src/main/java/org/ligi/passandroid/ui/UnzipPassDialog.java index f5d4f872..38a99a61 100644 --- a/src/main/java/org/ligi/passandroid/ui/UnzipPassDialog.java +++ b/src/main/java/org/ligi/passandroid/ui/UnzipPassDialog.java @@ -5,6 +5,7 @@ import android.app.AlertDialog; import android.app.ProgressDialog; import org.ligi.axt.helpers.dialog.ActivityFinishingOnClickListener; +import org.ligi.passandroid.R; import java.io.InputStream; @@ -60,7 +61,7 @@ public class UnzipPassDialog { @Override public void run() { myProgress.dismiss(); - DisplayError(activity, "Invalid Passbook", reason); + DisplayError(activity, activity.getString(R.string.invalid_passbook_title), reason); } }); } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c51adb15..4cc07c9d 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -88,5 +88,6 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWIS Share Navigate to Calendar + Invalid Passbook