From fa0a23450bca295d6961abf51dd5168c2f2a8853 Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 8 Oct 2014 17:56:53 +0300 Subject: [PATCH] Added checking for emoticons in favorites category --- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index 84bc074d91..d59e6d4ac0 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -173,6 +173,8 @@ public class FavouritesDbHelper { String index = ""; int number = 0; String name = checkEmoticons(p.getName()); + String category = checkEmoticons(p.getCategory()); + p.setCategory(category); if (name.length() != p.getName().length()){ emoticons = true; } @@ -202,7 +204,7 @@ public class FavouritesDbHelper { } } - private String checkEmoticons(String name){ + public String checkEmoticons(String name){ char[] chars = name.toCharArray(); int index; char ch1;