Add internal button to force an emoji search index download.
This commit is contained in:
parent
bca4289c96
commit
3a2e8b9b19
2 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -2652,6 +2652,8 @@
|
|||
<string name="preferences__internal_use_built_in_emoji_set" translatable="false">Use built-in emoji set</string>
|
||||
<string name="preferences__internal_force_emoji_download" translatable="false">Force emoji download</string>
|
||||
<string name="preferences__internal_force_emoji_download_description" translatable="false">Download the latest emoji set if it\'s newer than what we have.</string>
|
||||
<string name="preferences__internal_force_search_index_download" translatable="false">Force search index download</string>
|
||||
<string name="preferences__internal_force_search_index_download_description" translatable="false">Download the latest emoji search index if it\'s newer than what we have.</string>
|
||||
<string name="preferences__internal_current_version_builtin" translatable="false">Current version: Built-In</string>
|
||||
<string name="preferences__internal_current_version_d_at_density_s" translatable="false">Current version: %1$d at density %2$s</string>
|
||||
<string name="preferences__internal_delete_all_dynamic_shortcuts" translatable="false">Delete all dynamic shortcuts</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue