Settings: Add Default USB Configuration
chiru2000: Add an drawable icon nurkeinneid: Add missing order attribute Signed-off-by: chiru2000 <chiranthangadi123@gmail.com> Change-Id: I8cd237155f6df7d67ead592d719efe215375c5eb Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
This commit is contained in:
10
res/drawable/ic_usb_24.xml
Normal file
10
res/drawable/ic_usb_24.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:tint="?attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="?android:attr/colorControlNormal"
|
||||||
|
android:pathData="M15,7v4h1v2h-3V5h2l-3,-4 -3,4h2v8H8v-2.07c0.7,-0.37 1.2,-1.08 1.2,-1.93 0,-1.21 -0.99,-2.2 -2.2,-2.2 -1.21,0 -2.2,0.99 -2.2,2.2 0,0.85 0.5,1.56 1.2,1.93V13c0,1.11 0.89,2 2,2h3v3.05c-0.71,0.37 -1.2,1.1 -1.2,1.95 0,1.22 0.99,2.2 2.2,2.2 1.21,0 2.2,-0.98 2.2,-2.2 0,-0.85 -0.49,-1.58 -1.2,-1.95V15h3c1.11,0 2,-0.89 2,-2v-2h1V7h-4z"/>
|
||||||
|
</vector>
|
||||||
@@ -122,4 +122,8 @@
|
|||||||
|
|
||||||
<!-- Radio Info -->
|
<!-- Radio Info -->
|
||||||
<string name="radio_info_title">Radio info</string>
|
<string name="radio_info_title">Radio info</string>
|
||||||
|
|
||||||
|
<!-- USB configuration -->
|
||||||
|
<string name="usb_default_config_title">USB configuration</string>
|
||||||
|
<string name="usb_default_config_summary">Choose the default behavior when connected to a device via USB</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -83,6 +83,13 @@
|
|||||||
android:fragment="com.android.settings.gestures.GestureSettings"
|
android:fragment="com.android.settings.gestures.GestureSettings"
|
||||||
settings:controller="com.android.settings.gestures.GesturesSettingPreferenceController"/>
|
settings:controller="com.android.settings.gestures.GesturesSettingPreferenceController"/>
|
||||||
|
|
||||||
|
<Preference
|
||||||
|
android:key="default_usb_configuration"
|
||||||
|
android:title="@string/usb_default_config_title"
|
||||||
|
android:icon="@drawable/ic_usb_24"
|
||||||
|
android:order="-245"
|
||||||
|
android:fragment="com.android.settings.connecteddevice.usb.UsbDefaultFragment"/>
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="date_time_settings"
|
android:key="date_time_settings"
|
||||||
android:title="@string/date_and_time"
|
android:title="@string/date_and_time"
|
||||||
|
|||||||
Reference in New Issue
Block a user