One does not simply become a Developer

Co-authored-by: Michael Bestas <mikeioannina@gmail.com>
Change-Id: I64ab4d7ab9d8334275d2e4d493b716a8fc73ab4e
This commit is contained in:
Chirayu Desai
2012-12-26 11:33:38 +05:30
committed by Michael Bestas
parent d58f018299
commit 5c7cd83ac5
2 changed files with 13 additions and 3 deletions

View File

@@ -25,4 +25,14 @@
<!-- Device Info screen. LineageOS legal. -->
<string name="lineagelicense_title">LineageOS legal</string>
<!-- [CHAR LIMIT=NONE] Device Info screen. Countdown for user taps to enable development settings -->
<string name="show_dev_countdown_cm">{count, plural,
=1 {You are now # step away from enabling development settings.}
other {You are now # steps away from enabling development settings.}
}</string>
<!-- [CHAR LIMIT=NONE] Device Info screen. Confirmation that developer settings are enabled -->
<string name="show_dev_on_cm">You have enabled development settings!</string>
<!-- [CHAR LIMIT=NONE] Device Info screen. Okay we get it, stop pressing, you already have it on -->
<string name="show_dev_already_cm">No need, you have already enabled development settings.</string>
</resources>

View File

@@ -186,7 +186,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
}
mDevHitToast = Toast.makeText(mContext,
StringUtil.getIcuPluralsString(mContext, mDevHitCountdown,
R.string.show_dev_countdown),
R.string.show_dev_countdown_cm),
Toast.LENGTH_SHORT);
mDevHitToast.show();
}
@@ -201,7 +201,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
if (mDevHitToast != null) {
mDevHitToast.cancel();
}
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_already,
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_already_cm,
Toast.LENGTH_LONG);
mDevHitToast.show();
mMetricsFeatureProvider.action(
@@ -264,7 +264,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
if (mDevHitToast != null) {
mDevHitToast.cancel();
}
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on,
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on_cm,
Toast.LENGTH_LONG);
mDevHitToast.show();