Added checking for emoticons in favorites category

This commit is contained in:
Denis 2014-10-08 17:56:53 +03:00
parent 0380aafccd
commit fa0a23450b

View file

@ -173,6 +173,8 @@ public class FavouritesDbHelper {
String index = ""; String index = "";
int number = 0; int number = 0;
String name = checkEmoticons(p.getName()); String name = checkEmoticons(p.getName());
String category = checkEmoticons(p.getCategory());
p.setCategory(category);
if (name.length() != p.getName().length()){ if (name.length() != p.getName().length()){
emoticons = true; emoticons = true;
} }
@ -202,7 +204,7 @@ public class FavouritesDbHelper {
} }
} }
private String checkEmoticons(String name){ public String checkEmoticons(String name){
char[] chars = name.toCharArray(); char[] chars = name.toCharArray();
int index; int index;
char ch1; char ch1;