Add internal setting to force an emoji download.
This commit is contained in:
parent
7f3ba1978d
commit
78704dce8a
3 changed files with 13 additions and 2 deletions
|
@ -18,6 +18,7 @@ import org.thoughtcrime.securesms.components.settings.configure
|
|||
import org.thoughtcrime.securesms.database.DatabaseFactory
|
||||
import org.thoughtcrime.securesms.database.LocalMetricsDatabase
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
|
||||
import org.thoughtcrime.securesms.jobs.DownloadLatestEmojiDataJob
|
||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob
|
||||
import org.thoughtcrime.securesms.jobs.RefreshOwnProfileJob
|
||||
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob
|
||||
|
@ -234,6 +235,14 @@ class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__inter
|
|||
}
|
||||
)
|
||||
|
||||
clickPref(
|
||||
title = DSLSettingsText.from(R.string.preferences__internal_force_emoji_download),
|
||||
summary = DSLSettingsText.from(R.string.preferences__internal_force_emoji_download_description),
|
||||
onClick = {
|
||||
ApplicationDependencies.getJobManager().add(DownloadLatestEmojiDataJob(true))
|
||||
}
|
||||
)
|
||||
|
||||
dividerPref()
|
||||
|
||||
sectionHeaderPref(R.string.preferences__internal_sender_key)
|
||||
|
|
|
@ -113,7 +113,7 @@ public class DownloadLatestEmojiDataJob extends BaseJob {
|
|||
bucket = targetVersion.getDensity();
|
||||
}
|
||||
|
||||
Log.d(TAG, "LocalVersion: " + localVersion + ", SeverVersion: " + serverVersion + ", Bucket: " + bucket);
|
||||
Log.d(TAG, "LocalVersion: " + localVersion + ", ServerVersion: " + serverVersion + ", Bucket: " + bucket);
|
||||
|
||||
if (bucket == null) {
|
||||
Log.d(TAG, "This device has too low a display density to download remote emoji.");
|
||||
|
|
|
@ -2518,7 +2518,9 @@
|
|||
<string name="preferences__internal_force_censorship_description" translatable="false">Force the app to behave as if it is in a country where Signal is censored.</string>
|
||||
<string name="preferences__internal_conversations_and_shortcuts" translatable="false">Conversations and Shortcuts</string>
|
||||
<string name="preferences__internal_emoji" translatable="false">Emoji</string>
|
||||
<string name="preferences__internal_use_built_in_emoji_set" translatable="false">Use built-in emoji set.</string>
|
||||
<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_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