summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/opp/BluetoothOppUtility.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppUtility.java')
-rw-r--r--src/com/android/bluetooth/opp/BluetoothOppUtility.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppUtility.java b/src/com/android/bluetooth/opp/BluetoothOppUtility.java
index 15f4a8932..c386349b9 100644
--- a/src/com/android/bluetooth/opp/BluetoothOppUtility.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppUtility.java
@@ -207,14 +207,6 @@ public class BluetoothOppUtility {
return;
}
- CustomIntent activityIntent = new CustomIntent(Intent.ACTION_VIEW);
- if ("application/vnd.android.package-archive".equals(mimetype)) {
- // PackageInstaller doesn't like content URIs, so open file
- activityIntent.setDataAndType(Uri.fromFile(f), mimetype);
- context.startActivity(activityIntent);
- return;
- }
-
Uri path = FileProvider.getUriForFile(context,
"com.google.android.bluetooth.fileprovider", f);
// If there is no scheme, then it must be a file
@@ -223,6 +215,7 @@ public class BluetoothOppUtility {
}
if (isRecognizedFileType(context, path, mimetype)) {
+ CustomIntent activityIntent = new CustomIntent(Intent.ACTION_VIEW);
activityIntent.setDataAndTypeAndNormalize(path, mimetype);
List<ResolveInfo> resInfoList = context.getPackageManager()