From 41cdfd8887ffa817e28990194a843ca9b8338d87 Mon Sep 17 00:00:00 2001 From: Marie Janssen Date: Thu, 23 Feb 2017 11:20:56 -0800 Subject: [PATCH] Bluetooth: aim OPEN_RECEIVED_FILES at bluetooth Bluetooth is the receiver for the OPEN_RECEIVED_FILES intent, so we should aim the intent directly at them. Test: go to BT settings and click "Open Received Files" in the context Change-Id: I057215f1faf04c8c735a7e9340325716225ad22d Fix: 35246073 --- src/com/android/settings/bluetooth/BluetoothSettings.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 71ebcb507d9..71058f7b4da 100644 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -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; }