Set last search index download time.

fork-5.53.8
Greyson Parrelli 2021-06-07 10:32:18 -04:00
rodzic 06aec0b7d7
commit b25b8b90e4
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -115,6 +115,7 @@ public final class EmojiSearchIndexDownloadJob extends BaseJob {
DatabaseFactory.getEmojiSearchDatabase(context).setSearchIndex(searchIndex);
SignalStore.emojiValues().onSearchIndexUpdated(manifest.getVersion(), remoteLanguage);
SignalStore.emojiValues().setLastSearchIndexCheck(System.currentTimeMillis());
Log.i(TAG, "Success! Now at version: " + manifest.getVersion() + ", language: " + remoteLanguage);
}

Wyświetl plik

@ -104,7 +104,7 @@ public class EmojiValues extends SignalStoreValues {
return getLong(LAST_SEARCH_CHECK, 0);
}
public void setLastSearchIndexCheck(int time) {
public void setLastSearchIndexCheck(long time) {
putLong(LAST_SEARCH_CHECK, time);
}
}