Merge "Bluetooth: aim OPEN_RECEIVED_FILES at bluetooth" am: 17ad73ed9b

am: 019c8f38fe

Change-Id: I12084f452872d8fb9778ad6360c8e58196fdcddf
This commit is contained in:
Marie Janssen
2017-02-25 13:47:59 +00:00
committed by android-build-merger

View File

@@ -77,6 +77,8 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
/* Private intent to show the list of received files */
private static final String BTOPP_ACTION_OPEN_RECEIVED_FILES =
"android.btopp.intent.action.OPEN_RECEIVED_FILES";
private static final String BTOPP_PACKAGE =
"com.android.bluetooth";
private static final String KEY_PAIRED_DEVICES = "paired_devices";
@@ -262,6 +264,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
case MENU_ID_SHOW_RECEIVED:
MetricsLogger.action(getActivity(), MetricsEvent.ACTION_BLUETOOTH_FILES);
Intent intent = new Intent(BTOPP_ACTION_OPEN_RECEIVED_FILES);
intent.setPackage(BTOPP_PACKAGE);
getActivity().sendBroadcast(intent);
return true;
}