summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-11-05 20:55:14 (GMT)
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-11-05 20:55:14 (GMT)
commit61d6b3b559aff1bdd3116ed3490848e7b896a07c (patch)
tree9e372d2759536fa2f2c24344465ae74349475f5a
parent40a32f628089f338f823b34ed832e18a164aec23 (diff)
downloadandroid_packages_providers_DownloadProvider-61d6b3b559aff1bdd3116ed3490848e7b896a07c.zip
android_packages_providers_DownloadProvider-61d6b3b559aff1bdd3116ed3490848e7b896a07c.tar.gz
android_packages_providers_DownloadProvider-61d6b3b559aff1bdd3116ed3490848e7b896a07c.tar.bz2
LiveFolder: Update for the 4.4 API
Change-Id: I85812a4768293ca23fbf4889c57f62b8fe6a4025
-rw-r--r--src/com/android/providers/downloads/LiveFolderReceiver.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/providers/downloads/LiveFolderReceiver.java b/src/com/android/providers/downloads/LiveFolderReceiver.java
index 5837834..9f888c5 100644
--- a/src/com/android/providers/downloads/LiveFolderReceiver.java
+++ b/src/com/android/providers/downloads/LiveFolderReceiver.java
@@ -126,9 +126,7 @@ public class LiveFolderReceiver extends BroadcastReceiver {
updateFolders(context, 0);
} else if (type.equals(LiveFolder.Constants.FOLDER_ITEM_SELECTED)) {
int itemId = intent.getIntExtra(LiveFolder.Constants.FOLDER_ITEM_ID_EXTRA, 0);
- final Intent viewIntent = OpenHelper.buildViewIntent(context, itemId);
- viewIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- context.startActivity(viewIntent);
+ OpenHelper.startViewIntent(context, itemId, Intent.FLAG_ACTIVITY_NEW_TASK);
} else if (type.equals(LiveFolder.Constants.FOLDER_ITEM_REMOVED)) {
// Get selected item id
int itemId = intent.getIntExtra(LiveFolder.Constants.FOLDER_ITEM_ID_EXTRA, 0);