Skip to content

Commit 09ec68d

Browse files
committed
release
1 parent a99b1eb commit 09ec68d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "com.duy.c.cpp.compiler"
1212
minSdkVersion rootProject.ext.minSdkVersion
1313
targetSdkVersion rootProject.ext.targetSdkVersion
14-
versionCode 22
15-
versionName "1.2.2"
14+
versionCode 23
15+
versionName "1.2.3"
1616
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1717
multiDexEnabled true
1818
vectorDrawables.useSupportLibrary = true

app/src/main/java/com/duy/ccppcompiler/ide/editor/CppIdeActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void onEditorViewCreated(@NonNull IEditorDelegate editorDelegate) {
135135
}
136136
}
137137

138-
if (false) {
138+
if (true) {
139139
return;
140140
}
141141
editorDelegate.setSuggestionProvider(new SuggestionProvider() {

lib-n-ide/src/main/java/com/jecelyin/editor/v2/Preferences.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public Preferences(Context context) {
9898
map.put(context.getString(R.string.pref_auto_complete), true);
9999
map.put(KEY_AUTO_INDENT, true);
100100
map.put(KEY_AUTO_PAIR, true);
101+
map.put(context.getString(R.string.pref_auto_save), true);
101102

102103
map.put(context.getString(R.string.pref_insert_space_for_tab), true);
103104
map.put(KEY_TAB_SIZE, 4);
@@ -199,7 +200,7 @@ public int getHighlightSizeLimit() {
199200

200201
//auto save is default
201202
public boolean isAutoSave() {
202-
return getBoolean(context.getString(R.string.pref_auto_save), true);
203+
return (boolean) map.get(context.getString(R.string.pref_auto_save));
203204
}
204205

205206
public boolean getBoolean(String key, boolean def) {

0 commit comments

Comments
 (0)