mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
use a resource string instead of hardcoded value
This commit is contained in:
@@ -58,7 +58,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
final String text = notesView.getText().toString().trim();
|
final String text = notesView.getText().toString().trim();
|
||||||
prefs.edit().putString(Constants.TEXT, text).apply();
|
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();
|
hideKeyboard();
|
||||||
updateWidget();
|
updateWidget();
|
||||||
}
|
}
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
<string name="app_name">Simple Notes</string>
|
<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="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="save">Save</string>
|
||||||
|
<string name="text_saved">Text Saved</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">About</string>
|
<string name="about">About</string>
|
||||||
|
Reference in New Issue
Block a user