From: jackqdyulei Date: Thu, 30 Nov 2017 23:07:52 +0000 (-0800) Subject: Add preference Received files X-Git-Tag: android-x86-9.0-r1~143^2~4^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e978f8c5b43c55e8285ab275261d43eac63fa940;p=android-x86%2Fpackages-apps-Settings.git Add preference Received files Given that BluetoothFilesPreferenceController is already exist, we could reuse this controller and only add preference to xml. Bug: 69333961 Test: Screenshot Change-Id: I11285fd9a2b6c297dbf43a9a0b118c21780e6710 --- diff --git a/res/xml/connected_devices_advanced.xml b/res/xml/connected_devices_advanced.xml index c45d0f38a3..946151f297 100644 --- a/res/xml/connected_devices_advanced.xml +++ b/res/xml/connected_devices_advanced.xml @@ -56,6 +56,11 @@ android:targetClass="com.android.settings.deviceinfo.UsbModeChooserActivity"/> + + diff --git a/src/com/android/settings/connecteddevice/AdvancedConnectedDeviceDashboardFragment.java b/src/com/android/settings/connecteddevice/AdvancedConnectedDeviceDashboardFragment.java index 05e460f137..ea93fef030 100644 --- a/src/com/android/settings/connecteddevice/AdvancedConnectedDeviceDashboardFragment.java +++ b/src/com/android/settings/connecteddevice/AdvancedConnectedDeviceDashboardFragment.java @@ -22,6 +22,7 @@ import android.provider.SearchIndexableResource; import com.android.internal.logging.nano.MetricsProto; import com.android.settings.R; import com.android.settings.SettingsActivity; +import com.android.settings.bluetooth.BluetoothFilesPreferenceController; import com.android.settings.bluetooth.BluetoothMasterSwitchPreferenceController; import com.android.settings.bluetooth.Utils; import com.android.settings.dashboard.DashboardFragment; @@ -94,6 +95,7 @@ public class AdvancedConnectedDeviceDashboardFragment extends DashboardFragment AbstractPreferenceController smsMirroringController = smsMirroringFeatureProvider.getController(context); controllers.add(smsMirroringController); + controllers.add(new BluetoothFilesPreferenceController(context)); return controllers; }