File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/main/java/com/duy/ccppcompiler/ide/editor
lib-n-ide/src/main/java/com/jecelyin/editor/v2 Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 () {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments