Move "Received files" in BluetoothSettings

Move it from menu to preference

Also clean up the code about menu since there is no menu anymore
in BluetoothSettings

Bug: 35876447
Test: RunSettingsRoboTests
Change-Id: I4a3821595a0cc75382f1cf74bcafb3ecc44cc178
This commit is contained in:
jackqdyulei
2017-06-01 18:11:13 -07:00
parent 1dc3f38506
commit 837200041f
4 changed files with 158 additions and 53 deletions

View File

@@ -16,6 +16,7 @@
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/bluetooth_settings">
<Preference
@@ -25,6 +26,12 @@
android:key="paired_devices"
android:title="@string/bluetooth_paired_device_title"/>
<com.android.settings.DividerPreference
android:key="bt_received_files"
android:title="@string/bluetooth_show_received_files"
settings:allowDividerAbove="true"
settings:allowDividerBelow="true"/>
<com.android.settingslib.widget.FooterPreference/>
</PreferenceScreen>