kopia lustrzana https://github.com/ryukoposting/Signal-Android
Add internal settings for testing release channel notes.
rodzic
5a6d77bae4
commit
ddf59fb45a
|
@ -23,6 +23,7 @@ import org.thoughtcrime.securesms.jobs.DownloadLatestEmojiDataJob
|
||||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob
|
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob
|
||||||
import org.thoughtcrime.securesms.jobs.RefreshOwnProfileJob
|
import org.thoughtcrime.securesms.jobs.RefreshOwnProfileJob
|
||||||
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob
|
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob
|
||||||
|
import org.thoughtcrime.securesms.jobs.RetrieveReleaseChannelJob
|
||||||
import org.thoughtcrime.securesms.jobs.RotateProfileKeyJob
|
import org.thoughtcrime.securesms.jobs.RotateProfileKeyJob
|
||||||
import org.thoughtcrime.securesms.jobs.StorageForcePushJob
|
import org.thoughtcrime.securesms.jobs.StorageForcePushJob
|
||||||
import org.thoughtcrime.securesms.jobs.SubscriptionReceiptRequestResponseJob
|
import org.thoughtcrime.securesms.jobs.SubscriptionReceiptRequestResponseJob
|
||||||
|
@ -31,6 +32,7 @@ import org.thoughtcrime.securesms.payments.DataExportUtil
|
||||||
import org.thoughtcrime.securesms.util.ConversationUtil
|
import org.thoughtcrime.securesms.util.ConversationUtil
|
||||||
import org.thoughtcrime.securesms.util.FeatureFlags
|
import org.thoughtcrime.securesms.util.FeatureFlags
|
||||||
import org.thoughtcrime.securesms.util.concurrent.SimpleTask
|
import org.thoughtcrime.securesms.util.concurrent.SimpleTask
|
||||||
|
import kotlin.math.max
|
||||||
|
|
||||||
class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__internal_preferences) {
|
class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__internal_preferences) {
|
||||||
|
|
||||||
|
@ -333,9 +335,9 @@ class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__inter
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (FeatureFlags.donorBadges() && SignalStore.donationsValues().getSubscriber() != null) {
|
||||||
dividerPref()
|
dividerPref()
|
||||||
|
|
||||||
if (FeatureFlags.donorBadges() && SignalStore.donationsValues().getSubscriber() != null) {
|
|
||||||
sectionHeaderPref(R.string.preferences__internal_badges)
|
sectionHeaderPref(R.string.preferences__internal_badges)
|
||||||
|
|
||||||
clickPref(
|
clickPref(
|
||||||
|
@ -345,6 +347,25 @@ class InternalSettingsFragment : DSLSettingsFragment(R.string.preferences__inter
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dividerPref()
|
||||||
|
|
||||||
|
sectionHeaderPref(R.string.preferences__internal_release_channel)
|
||||||
|
|
||||||
|
clickPref(
|
||||||
|
title = DSLSettingsText.from(R.string.preferences__internal_fetch_release_channel),
|
||||||
|
onClick = {
|
||||||
|
SignalStore.releaseChannelValues().previousManifestMd5 = ByteArray(0)
|
||||||
|
RetrieveReleaseChannelJob.enqueue(force = true)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
clickPref(
|
||||||
|
title = DSLSettingsText.from(R.string.preferences__internal_release_channel_set_last_version),
|
||||||
|
onClick = {
|
||||||
|
SignalStore.releaseChannelValues().highestVersionNoteReceived = max(SignalStore.releaseChannelValues().highestVersionNoteReceived - 10, 0)
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2629,7 +2629,9 @@
|
||||||
<string name="preferences__internal_audio_processing_method" translatable="false">Audio processing method</string>
|
<string name="preferences__internal_audio_processing_method" translatable="false">Audio processing method</string>
|
||||||
<string name="preferences__internal_badges" translatable="false">Badges</string>
|
<string name="preferences__internal_badges" translatable="false">Badges</string>
|
||||||
<string name="preferences__internal_badges_enqueue_redemption" translatable="false">Enqueue redemption.</string>
|
<string name="preferences__internal_badges_enqueue_redemption" translatable="false">Enqueue redemption.</string>
|
||||||
|
<string name="preferences__internal_release_channel" translatable="false">Release channel</string>
|
||||||
|
<string name="preferences__internal_fetch_release_channel" translatable="false">Fetch release channel</string>
|
||||||
|
<string name="preferences__internal_release_channel_set_last_version" translatable="false">Set last version seen back 10 versions</string>
|
||||||
|
|
||||||
<!-- Payments -->
|
<!-- Payments -->
|
||||||
<string name="PaymentsActivityFragment__all_activity">All activity</string>
|
<string name="PaymentsActivityFragment__all_activity">All activity</string>
|
||||||
|
|
Ładowanie…
Reference in New Issue