Skip to content

Commit b1a72c7

Browse files
committed
Clean setting
1 parent ff513fe commit b1a72c7

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

app/src/main/java/com/duy/ccppcompiler/compiler/CompilerSettingActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public static class SettingsFragment extends PreferenceFragment {
3232
public void onCreate(@Nullable Bundle savedInstanceState) {
3333
super.onCreate(savedInstanceState);
3434
addPreferencesFromResource(R.xml.preferences_compiler);
35-
bindPreferenceSummaryToValue(findPreference(getString(R.string.pref_key_c_options)));
36-
bindPreferenceSummaryToValue(findPreference(getString(R.string.pref_key_cxx_options)));
35+
bindPreferenceSummaryToValue(findPreference(getString(R.string.pref_option_optimization_level)));
36+
bindPreferenceSummaryToValue(findPreference(getString(R.string.pref_option_language_standard)));
3737
}
3838
}
3939
}

app/src/main/res/layout/dialog_compiler_options.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<android.support.design.widget.TextInputLayout
5656
android:layout_width="match_parent"
5757
android:layout_height="wrap_content"
58-
android:hint="@string/pref_ld_opts">
58+
android:hint="@string/pref_title_ld_opts">
5959

6060
<android.support.design.widget.TextInputEditText
6161
android:id="@+id/edit_ld_flags"

app/src/main/res/values/arrays.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343

4444
<string-array name="language_standard_entries">
4545
<item>""</item>
46-
<item>c90 - Support all ISO C90 programs.</item>
47-
<item>c99 - ISO C99.</item>
48-
<item>c11 - ISO C11, the 2011 revision of the ISO C standard.</item>
49-
<item>gnu90 - GNU dialect of ISO C90 (including some C99 features).</item>
50-
<item>gnu99 - GNU dialect of ISO C99.</item>
51-
<item>gnu11 - GNU dialect of ISO C11.</item>
52-
<item>c++11 - The 2011 ISO C++ standard plus amendments.</item>
46+
<item>c90</item>
47+
<item>c99</item>
48+
<item>c11</item>
49+
<item>gnu90</item>
50+
<item>gnu99</item>
51+
<item>gnu11</item>
52+
<item>c++11</item>
5353
<item>gnu++11</item>
54-
<item>c++14 - The 2014 ISO C++ standard plus amendments.</item>
54+
<item>c++14</item>
5555
</string-array>
5656

5757
<string-array name="language_standard_entries_values">

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<string name="pref_option_wextra_warning">pref_option_wextra_warning</string>
3838
<string name="pref_option_werror">pref_option_werror</string>
3939
<string name="build_native_activity">Build native activity</string>
40-
<string name="pref_ld_opts">Linker options (LDFLAGS)</string>
40+
<string name="pref_title_ld_opts">Linker options (LDFLAGS)</string>
4141
<string name="title_compiler_options">Compiler options</string>
4242
<string name="run_sdl_activity">Run SDL activity</string>
4343
<string name="build">Build</string>

app/src/main/res/xml/preferences_compiler.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
android:key="@string/pref_key_cxx_options"
1212
android:summary="Add the commands when calling the C++ compiler"
1313
android:title="@string/pref_cxx_opts" />
14+
<EditTextPreference
15+
android:key="@string/pref_key_linker_options"
16+
android:summary="Add the commands when calling the linker"
17+
android:title="@string/pref_title_ld_opts" />
1418
</PreferenceCategory>
1519

1620
<PreferenceCategory android:title="C setting">

0 commit comments

Comments
 (0)