Add internal button to force an emoji search index download.

This commit is contained in:
Greyson Parrelli
2022-03-09 11:47:29 -05:00
committed by Cody Henthorne
parent bca4289c96
commit 3a2e8b9b19
2 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import org.thoughtcrime.securesms.database.LocalMetricsDatabase
import org.thoughtcrime.securesms.database.SignalDatabase
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
import org.thoughtcrime.securesms.jobs.DownloadLatestEmojiDataJob
import org.thoughtcrime.securesms.jobs.EmojiSearchIndexDownloadJob
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob
import org.thoughtcrime.securesms.jobs.RefreshOwnProfileJob
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob
@@ -249,6 +250,14 @@ class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__inter
}
)
clickPref(
title = DSLSettingsText.from(R.string.preferences__internal_force_search_index_download),
summary = DSLSettingsText.from(R.string.preferences__internal_force_search_index_download_description),
onClick = {
EmojiSearchIndexDownloadJob.scheduleImmediately()
}
)
dividerPref()
sectionHeaderPref(R.string.preferences__internal_sender_key)