Set preference unselectable using the DividerPreference. am: 64e00da860
am: 33c2f0d150
am: 3f428f1ca9
Change-Id: I7c0c484486cfb462420578ec1a5edf5529259f9f
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||||
android:title="@string/about_settings">
|
android:title="@string/about_settings">
|
||||||
|
|
||||||
<!-- System update settings - launches activity -->
|
<!-- System update settings - launches activity -->
|
||||||
@@ -70,11 +71,15 @@
|
|||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
||||||
<!-- Device hardware model -->
|
<!-- Device hardware model -->
|
||||||
<Preference android:key="device_model"
|
<com.android.settings.DividerPreference
|
||||||
|
android:key="device_model"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:shouldDisableView="false"
|
android:shouldDisableView="false"
|
||||||
|
android:selectable="false"
|
||||||
android:title="@string/model_info"
|
android:title="@string/model_info"
|
||||||
android:summary="@string/device_info_default"/>
|
android:summary="@string/device_info_default"
|
||||||
|
settings:allowDividerAbove="true"
|
||||||
|
settings:allowDividerBelow="true"/>
|
||||||
|
|
||||||
<!-- Device firmware version -->
|
<!-- Device firmware version -->
|
||||||
<Preference android:key="firmware_version"
|
<Preference android:key="firmware_version"
|
||||||
@@ -92,25 +97,37 @@
|
|||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
||||||
<!-- Device FCC equipment id -->
|
<!-- Device FCC equipment id -->
|
||||||
<Preference android:key="fcc_equipment_id"
|
<com.android.settings.DividerPreference
|
||||||
|
android:key="fcc_equipment_id"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:shouldDisableView="false"
|
android:shouldDisableView="false"
|
||||||
|
android:selectable="false"
|
||||||
android:title="@string/fcc_equipment_id"
|
android:title="@string/fcc_equipment_id"
|
||||||
android:summary="@string/device_info_default"/>
|
android:summary="@string/device_info_default"
|
||||||
|
settings:allowDividerAbove="true"
|
||||||
|
settings:allowDividerBelow="true"/>
|
||||||
|
|
||||||
<!-- Device Baseband version -->
|
<!-- Device Baseband version -->
|
||||||
<Preference android:key="baseband_version"
|
<com.android.settings.DividerPreference
|
||||||
|
android:key="baseband_version"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:shouldDisableView="false"
|
android:shouldDisableView="false"
|
||||||
|
android:selectable="false"
|
||||||
android:title="@string/baseband_version"
|
android:title="@string/baseband_version"
|
||||||
android:summary="@string/device_info_default"/>
|
android:summary="@string/device_info_default"
|
||||||
|
settings:allowDividerAbove="true"
|
||||||
|
settings:allowDividerBelow="true"/>
|
||||||
|
|
||||||
<!-- Device Kernel version -->
|
<!-- Device Kernel version -->
|
||||||
<Preference android:key="kernel_version"
|
<com.android.settings.DividerPreference
|
||||||
|
android:key="kernel_version"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:shouldDisableView="false"
|
android:shouldDisableView="false"
|
||||||
|
android:selectable="false"
|
||||||
android:title="@string/kernel_version"
|
android:title="@string/kernel_version"
|
||||||
android:summary="@string/device_info_default"/>
|
android:summary="@string/device_info_default"
|
||||||
|
settings:allowDividerAbove="true"
|
||||||
|
settings:allowDividerBelow="true"/>
|
||||||
|
|
||||||
<!-- Detailed build version -->
|
<!-- Detailed build version -->
|
||||||
<Preference android:key="build_number"
|
<Preference android:key="build_number"
|
||||||
@@ -120,10 +137,14 @@
|
|||||||
android:summary="@string/device_info_default"/>
|
android:summary="@string/device_info_default"/>
|
||||||
|
|
||||||
<!-- SELinux status information -->
|
<!-- SELinux status information -->
|
||||||
<Preference android:key="selinux_status"
|
<com.android.settings.DividerPreference
|
||||||
|
android:key="selinux_status"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:shouldDisableView="false"
|
android:shouldDisableView="false"
|
||||||
|
android:selectable="false"
|
||||||
android:title="@string/selinux_status"
|
android:title="@string/selinux_status"
|
||||||
android:summary="@string/selinux_status_enforcing"/>
|
android:summary="@string/selinux_status_enforcing"
|
||||||
|
settings:allowDividerAbove="true"
|
||||||
|
settings:allowDividerBelow="true"/>
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
Reference in New Issue
Block a user