No need to call getResources() for getString().

This commit is contained in:
akwizgran
2014-05-09 20:07:13 +01:00
parent d755668b4a
commit 6b79cbfc55
6 changed files with 9 additions and 11 deletions

View File

@@ -139,7 +139,7 @@ implements InvitationListener {
}
private void showToastAndFinish() {
String format = getResources().getString(R.string.contact_added_toast);
String format = getString(R.string.contact_added_toast);
String text = String.format(format, contactName);
Toast.makeText(this, text, LENGTH_LONG).show();
finish();