Missed one string in DisplayRefreshRateTest.java. Now everything that matters should be within strings.xml now.

This commit is contained in:
Lioncash 2013-09-27 02:30:38 -04:00
parent 9310e1face
commit 1f6161b45e
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
<!-- Display Refresh Rate Test Class -->
<string name="refresh_rate_calibration">Refresh rate calibration</string>
<string name="touch_screen_with_fingers">Touch the screen with your fingers for more accurate measurements.</string>
<string name="refresh_rate_measured_to">Refresh rate measured to: %1$s Hz.</string>
<!-- History Selection Class -->
<string name="recently_played_games">Recently played games</string>

View File

@ -120,7 +120,7 @@ public final class DisplayRefreshRateTest extends Activity {
protected void onDestroy() {
SharedPreferences prefs = MainMenuActivity.getPreferences();
String fps = prefs.getString("video_refresh_rate", "ERROR");
Toast.makeText(this, "Refresh rate measured to: " + fps + " Hz.", Toast.LENGTH_LONG).show();
Toast.makeText(this, String.format(getString(R.string.refresh_rate_measured_to), fps), Toast.LENGTH_LONG).show();
super.onDestroy();
}
}