diff --git a/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java
index 6158d35d..e53c2387 100644
--- a/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java
+++ b/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java
@@ -14,7 +14,6 @@ import android.view.MenuItem;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
-import com.simplemobiletools.notes.Config;
import com.simplemobiletools.notes.Constants;
import com.simplemobiletools.notes.MyWidgetProvider;
import com.simplemobiletools.notes.R;
@@ -47,7 +46,7 @@ public class MainActivity extends SimpleActivity {
@Override
protected void onPause() {
super.onPause();
- if (Config.newInstance(getApplicationContext()).getIsAutosaveEnabled()) {
+ if (mConfig.getIsAutosaveEnabled()) {
saveText(false);
}
}
@@ -65,13 +64,13 @@ public class MainActivity extends SimpleActivity {
@Override
protected void onDestroy() {
super.onDestroy();
- Config.newInstance(getApplicationContext()).setIsFirstRun(false);
+ mConfig.setIsFirstRun(false);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu, menu);
- if (Config.newInstance(getApplicationContext()).getIsAutosaveEnabled())
+ if (mConfig.getIsAutosaveEnabled())
menu.findItem(R.id.save).setVisible(false);
return true;
@@ -106,7 +105,8 @@ public class MainActivity extends SimpleActivity {
alertDialog.setPositiveButton(R.string.enable_autosave, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
-
+ mConfig.setIsAutosaveEnabled(true);
+ supportInvalidateOptionsMenu();
}
});
alertDialog.create().show();
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index b248911d..ed54f98e 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -11,6 +11,7 @@
android:layout_height="wrap_content"
android:background="@null"
android:gravity="top"
- android:padding="@dimen/activity_margin"/>
+ android:padding="@dimen/activity_margin"
+ android:textSize="@dimen/normal_text_size"/>
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 0f0af7f5..760e3c5c 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -10,7 +10,7 @@
Enable autosave
Cancel
Unsaved changes
- Changes made to the note have not be saved. Do you want to enable autosave?
+ Changes made to the note have not been saved. Do you want to enable autosave?
Impostazioni
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index 7334b55a..a9f3d020 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -10,7 +10,7 @@
Enable autosave
Cancel
Unsaved changes
- Changes made to the note have not be saved. Do you want to enable autosave?
+ Changes made to the note have not been saved. Do you want to enable autosave?
設定
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index 34a58d31..a9206c2d 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -10,7 +10,7 @@
Enable autosave
Cancel
Unsaved changes
- Changes made to the note have not be saved. Do you want to enable autosave?
+ Changes made to the note have not been saved. Do you want to enable autosave?
Inställningar
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index de9fbdff..921036ae 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -10,7 +10,7 @@
Enable autosave
Cancel
Unsaved changes
- Changes made to the note have not be saved. Do you want to enable autosave?
+ Changes made to the note have not been saved. Do you want to enable autosave?
Settings