Browse Source
bypass the error so it doesn't crash
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
3 changed files with
12 additions and
2 deletions
-
app/src/main/java/awais/instagrabber/customviews/emoji/Emoji.java
-
app/src/main/java/awais/instagrabber/customviews/emoji/EmojiCategory.java
-
app/src/main/java/awais/instagrabber/utils/emoji/EmojiParser.java
|
@ -35,7 +35,7 @@ public class Emoji { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public GoogleCompatEmojiDrawable getDrawable() { |
|
|
public GoogleCompatEmojiDrawable getDrawable() { |
|
|
if (drawable == null) { |
|
|
|
|
|
|
|
|
if (drawable == null && unicode != null) { |
|
|
drawable = new GoogleCompatEmojiDrawable(unicode); |
|
|
drawable = new GoogleCompatEmojiDrawable(unicode); |
|
|
} |
|
|
} |
|
|
return drawable; |
|
|
return drawable; |
|
@ -60,6 +60,7 @@ public class Emoji { |
|
|
return "Emoji{" + |
|
|
return "Emoji{" + |
|
|
"unicode='" + unicode + '\'' + |
|
|
"unicode='" + unicode + '\'' + |
|
|
", name='" + name + '\'' + |
|
|
", name='" + name + '\'' + |
|
|
|
|
|
", variants=" + variants + |
|
|
'}'; |
|
|
'}'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -18,6 +18,10 @@ public class EmojiCategory { |
|
|
this.type = type; |
|
|
this.type = type; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public EmojiCategory() { |
|
|
|
|
|
this.type = null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public EmojiCategoryType getType() { |
|
|
public EmojiCategoryType getType() { |
|
|
return type; |
|
|
return type; |
|
|
} |
|
|
} |
|
@ -73,4 +77,9 @@ public class EmojiCategory { |
|
|
public int hashCode() { |
|
|
public int hashCode() { |
|
|
return Objects.hash(type); |
|
|
return Objects.hash(type); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public String toString() { |
|
|
|
|
|
return "EmojiCategory {TYPE=" + type + ", EMOJIS=" + emojis + "}"; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
@ -68,7 +68,7 @@ public final class EmojiParser { |
|
|
.build() |
|
|
.build() |
|
|
.stream()) |
|
|
.stream()) |
|
|
.collect(Collectors.toMap(Emoji::getUnicode, Function.identity())); |
|
|
.collect(Collectors.toMap(Emoji::getUnicode, Function.identity())); |
|
|
} catch (IOException e) { |
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
Log.e(TAG, "EmojiParser: ", e); |
|
|
Log.e(TAG, "EmojiParser: ", e); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|