summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2013-08-16 11:16:18 -0700
committerDanesh M <daneshm90@gmail.com>2013-08-16 11:16:18 -0700
commitdda533e5fcb334ba0b5ca1bf5b8bffe64ee9c066 (patch)
treecf763bfde526d7884d3a645ebf6b58931e740109
parenta00c973db79bcf549711595fc52495d75f233663 (diff)
downloadpackages_apps_Trebuchet-dda533e5fcb334ba0b5ca1bf5b8bffe64ee9c066.tar.gz
packages_apps_Trebuchet-dda533e5fcb334ba0b5ca1bf5b8bffe64ee9c066.tar.bz2
packages_apps_Trebuchet-dda533e5fcb334ba0b5ca1bf5b8bffe64ee9c066.zip
Trebuchet : Live folder ids fix
Send the ids as a primitive long array rather than serializable Change-Id: Ia2cc5d3df58cd8cbc695572c65cc03f61f1a6099
-rw-r--r--src/com/cyanogenmod/trebuchet/Launcher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java
index 2087a4d53..7cb807202 100644
--- a/src/com/cyanogenmod/trebuchet/Launcher.java
+++ b/src/com/cyanogenmod/trebuchet/Launcher.java
@@ -3952,8 +3952,12 @@ public final class Launcher extends Activity
for (ComponentName receiver : receivers.keySet()) {
intent.setComponent(receiver);
ArrayList<Long> ids = receivers.get(receiver);
+ long[] receiverIds = new long[ids.size()];
+ for (int i = 0; i < ids.size(); i++) {
+ receiverIds[i] = ids.get(i);
+ }
intent.putExtra(LiveFolder.Constants.EXISTING_FOLDER_IDS_EXTRA,
- ids.toArray(new Long[ids.size()]));
+ receiverIds);
sendBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF);
}
}