move 'record toast' to prefs
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user