From 6af4772b0172cb3e0b70f2ab5b961139f404e621 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 9 Jul 2014 13:38:41 +0300 Subject: [PATCH] Superuser: Don't duplicate 'Allow' string Change-Id: I98085f8da3ea9f6f6b8899d0bb0cda0cc1d503aa --- Superuser/res/values/strings.xml | 2 +- .../src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Superuser/res/values/strings.xml b/Superuser/res/values/strings.xml index 18ef309..5f39ff9 100644 --- a/Superuser/res/values/strings.xml +++ b/Superuser/res/values/strings.xml @@ -17,7 +17,7 @@ Superuser Allow - Allow (%1$s) + %1$s (%2$s) Deny Incoming Superuser Request\u2026 Unknown UID: %s diff --git a/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java b/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java index d7d6088..704e2bd 100644 --- a/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java +++ b/Superuser/src/com/koushikdutta/superuser/MultitaskSuRequestActivity.java @@ -269,9 +269,10 @@ public class MultitaskSuRequestActivity extends FragmentActivity { new Runnable() { public void run() { - mAllow.setText(getString(R.string.allow_countdown, mTimeLeft)); + String allow = getString(R.string.allow); + mAllow.setText(getString(R.string.allow_countdown, allow, mTimeLeft)); if (mTimeLeft-- <= 0) { - mAllow.setText(getString(R.string.allow)); + mAllow.setText(allow); if (!mHandled) mAllow.setEnabled(true); return; -- 2.11.0