use a resource string instead of hardcoded value

This commit is contained in:
tibbi 2016-06-13 18:48:26 +02:00
parent 409232e91d
commit d5c9535a62
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class MainActivity extends AppCompatActivity {
final String text = notesView.getText().toString().trim();
prefs.edit().putString(Constants.TEXT, text).apply();
Toast.makeText(this, "Text saved", Toast.LENGTH_SHORT).show();
Toast.makeText(this, getResources().getString(R.string.text_saved), Toast.LENGTH_SHORT).show();
hideKeyboard();
updateWidget();
}

View File

@ -2,6 +2,7 @@
<string name="app_name">Simple Notes</string>
<string name="widget_config">Thank you for using Simple Notes.\nFor more simple apps please visit SimpleMobileTools.com.\n</string>
<string name="save">Save</string>
<string name="text_saved">Text Saved</string>
<!-- About -->
<string name="about">About</string>