move 'record toast' to prefs

This commit is contained in:
hyb1996
2017-08-12 14:29:15 +08:00
parent 4129f83cb1
commit af752d5e4c
6 changed files with 33 additions and 11 deletions

View File

@@ -62,13 +62,15 @@
android:gravity="center_vertical"
android:padding="16dp">
<android.support.v7.widget.SwitchCompat
<com.stardust.widget.PrefSwitch
android:id="@+id/sw_record_toast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textOff="@string/text_off"
android:textOn="@string/text_on"/>
android:textOn="@string/text_on"
app:defaultValue="true"
app:key="@string/key_record_toast"/>
<TextView
android:layout_width="wrap_content"

View File

@@ -217,6 +217,7 @@
<string name="text_run_script">运行脚本</string>
<string name="text_import_script">导入脚本文件</string>
<string name="key_record_with_root">key_record_with_root</string>
<string name="key_record_toast">key_record_toast</string>
<string-array name="record_control_keys">

View File

@@ -13,6 +13,11 @@
android:defaultValue="false"
android:key="@string/key_record_with_root"
android:title="@string/text_record_with_root"/>
<com.stardust.theme.preference.ThemeColorSwitchPreference
android:defaultValue="true"
android:key="@string/key_record_toast"
android:title="@string/text_record_msg"/>
</com.stardust.theme.preference.ThemeColorPreferenceCategory>
<com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_running">