Add support for OTA emoji download.

This commit is contained in:
Alex Hart
2021-04-19 10:36:33 -03:00
committed by Cody Henthorne
parent 7fa200401c
commit 85e0e74bc6
55 changed files with 1653 additions and 621 deletions

View File

@@ -10,6 +10,7 @@ import java.util.List;
public class EmojiValues extends SignalStoreValues {
private static final String PREFIX = "emojiPref__";
private static final String NEXT_SCHEDULED_CHECK = PREFIX + "next_scheduled_check";
EmojiValues(@NonNull KeyValueStore store) {
super(store);
@@ -25,6 +26,14 @@ public class EmojiValues extends SignalStoreValues {
return Collections.emptyList();
}
public long getNextScheduledCheck() {
return getStore().getLong(NEXT_SCHEDULED_CHECK, 0);
}
public void setNextScheduledCheck(long nextScheduledCheck) {
putLong(NEXT_SCHEDULED_CHECK, nextScheduledCheck);
}
public void setPreferredVariation(@NonNull String emoji) {
String canonical = EmojiUtil.getCanonicalRepresentation(emoji);