From 25f4b74d90ee2100fd09e08c1095b5d0abffedd7 Mon Sep 17 00:00:00 2001 From: Hua Song Date: Thu, 5 May 2016 15:20:28 +0800 Subject: [PATCH] OPP: Use addFlags() instead of setFlags() when adding flags to the ACTION_VIEW intent Signed-off-by: Hua Song Change-Id: Ie370b1fc599dbb1d8effca409de28e11f0e2b370 --- src/com/android/bluetooth/opp/BluetoothOppUtility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/bluetooth/opp/BluetoothOppUtility.java b/src/com/android/bluetooth/opp/BluetoothOppUtility.java index 58f46779..2c0dafe5 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppUtility.java +++ b/src/com/android/bluetooth/opp/BluetoothOppUtility.java @@ -211,8 +211,8 @@ public class BluetoothOppUtility { } activityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - activityIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - activityIntent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION); + activityIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + activityIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION); try { if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); -- 2.11.0