Replace variable doesn't work with array list

29 views
Skip to first unread message

John Doe

unread,
Mar 4, 2016, 12:42:57 PM3/4/16
to Tasker - Developers
Tested with Tasker 4.8u1. If you create a bundle using an ArrayList<String> with key "MYKEY" then you use the method setVariableReplaceKeys using "MYKEY", when the data are returned in the broadcast receiver, the variables filled in the list are not replaced.

Pent

unread,
Mar 6, 2016, 5:09:13 AM3/6/16
to Tasker - Developers
Will test it while doing the ID changes.

Pent

Pent

unread,
Mar 8, 2016, 10:50:30 AM3/8/16
to Tasker - Developers
There's no code for ArrayList, only String []. If I understand right, you would expect Tasker to scan each index of
the ArrayList when the setting fires and replace any variable references found at each index ?

Pent
Message has been deleted

John Doe

unread,
Mar 8, 2016, 12:18:06 PM3/8/16
to Tasker - Developers
There's no code for ArrayList, only String []. If I understand right, you would expect Tasker to scan each index of
the ArrayList when the setting fires and replace any variable references found at each index ?

Pent


Exactly. I could change from arraylist<String> to String[] but since I should change the bundle it could be a problem for users, so it'd be great to do the same thing for array list. 

Crafty Apps Support

unread,
Mar 8, 2016, 12:19:26 PM3/8/16
to task...@googlegroups.com
There's no code for ArrayList, only String []. If I understand right, you would expect Tasker to scan each index of
the ArrayList when the setting fires and replace any variable references found at each index ?

Pent
Exactly. I could change from arraylist<String> to String[] but since I should change the bundle it could be a problem for users, so it'd be great to do the same thing for array list.

Sure, it's mostly just a cut-n-paste anyway.

Pent
Reply all
Reply to author
Forward
0 new messages