mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-07 23:47:30 +00:00
bypass the error so it doesn't crash
This commit is contained in:
parent
16ac573859
commit
3e056df520
@ -35,7 +35,7 @@ public class Emoji {
|
||||
}
|
||||
|
||||
public GoogleCompatEmojiDrawable getDrawable() {
|
||||
if (drawable == null) {
|
||||
if (drawable == null && unicode != null) {
|
||||
drawable = new GoogleCompatEmojiDrawable(unicode);
|
||||
}
|
||||
return drawable;
|
||||
@ -60,6 +60,7 @@ public class Emoji {
|
||||
return "Emoji{" +
|
||||
"unicode='" + unicode + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", variants=" + variants +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,10 @@ public class EmojiCategory {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public EmojiCategory() {
|
||||
this.type = null;
|
||||
}
|
||||
|
||||
public EmojiCategoryType getType() {
|
||||
return type;
|
||||
}
|
||||
@ -73,4 +77,9 @@ public class EmojiCategory {
|
||||
public int hashCode() {
|
||||
return Objects.hash(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EmojiCategory {TYPE=" + type + ", EMOJIS=" + emojis + "}";
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ public final class EmojiParser {
|
||||
.build()
|
||||
.stream())
|
||||
.collect(Collectors.toMap(Emoji::getUnicode, Function.identity()));
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "EmojiParser: ", e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user