Updated emoji to version 14.0
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 125 KiB |
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 176 KiB |
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 87 KiB |
BIN
app/src/main/assets/emoji/People_9.webp
Normal file
After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
@ -75,10 +75,10 @@ public class DownloadLatestEmojiDataJob extends BaseJob {
|
|||
}
|
||||
}
|
||||
|
||||
public DownloadLatestEmojiDataJob(boolean force) {
|
||||
public DownloadLatestEmojiDataJob(boolean ignoreAutoDownloadConstraints) {
|
||||
this(new Job.Parameters.Builder()
|
||||
.setQueue(QUEUE_KEY)
|
||||
.addConstraint(force ? NetworkConstraint.KEY : AutoDownloadEmojiConstraint.KEY)
|
||||
.addConstraint(ignoreAutoDownloadConstraints ? NetworkConstraint.KEY : AutoDownloadEmojiConstraint.KEY)
|
||||
.setMaxInstancesForQueue(1)
|
||||
.setMaxAttempts(5)
|
||||
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
||||
|
@ -126,10 +126,10 @@ public class DownloadLatestEmojiDataJob extends BaseJob {
|
|||
EmojiData emojiData = downloadJson(context, targetVersion);
|
||||
List<String> supportedDensities = emojiData.getDensities();
|
||||
String format = emojiData.getFormat();
|
||||
List<String> imagePaths = Stream.of(emojiData.getDataPages())
|
||||
.map(EmojiPageModel::getSpriteUri)
|
||||
.map(Uri::getLastPathSegment)
|
||||
.toList();
|
||||
List<String> imagePaths = Stream.of(emojiData.getDataPages())
|
||||
.map(EmojiPageModel::getSpriteUri)
|
||||
.map(Uri::getLastPathSegment)
|
||||
.toList();
|
||||
|
||||
String density = resolveDensity(supportedDensities, targetVersion.getDensity());
|
||||
targetVersion = new EmojiFiles.Version(targetVersion.getVersion(), targetVersion.getUuid(), density);
|
||||
|
|
|
@ -101,9 +101,10 @@ public class ApplicationMigrations {
|
|||
static final int PNI_IDENTITY_2 = 57;
|
||||
static final int PNI_IDENTITY_3 = 58;
|
||||
static final int STORY_DISTRIBUTION_LIST_SYNC = 59;
|
||||
static final int EMOJI_VERSION_7 = 60;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 59;
|
||||
public static final int CURRENT_VERSION = 60;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
|
@ -441,6 +442,10 @@ public class ApplicationMigrations {
|
|||
jobs.put(Version.STORY_DISTRIBUTION_LIST_SYNC, new StorageServiceMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.EMOJI_VERSION_7) {
|
||||
jobs.put(Version.EMOJI_VERSION_7, new EmojiDownloadMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
|