paramsmilies Smiley text, e.g. ":)", "8-)"paramsmileyResIds Resource IDs associated with the smileys. for (int i = 0; i < smilies.length; i++) { TrieNode.addToTrie(smileys, smilies[i], ""); mSmileyToRes.put(smilies[i], smileyResIds[i]); }
for (int i = 0; i < smilies.length; i++) { TrieNode.addToTrie(smileys, smilies[i], ""); mSmileyToRes.put(smilies[i], smileyResIds[i]); }
return null;
Looks up the resource id of a given smiley.paramsmiley The smiley to look up.returnthe resource id of the specified smiley, or -1 if no resource id is associated with it. Integer i = mSmileyToRes.get(smiley); if (i == null) { return -1; } return i.intValue();
Integer i = mSmileyToRes.get(smiley); if (i == null) { return -1; } return i.intValue();
return smileys;