mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Remember and restore last pane selection.
This commit is contained in:
@@ -42,6 +42,7 @@ class MiscellaneousValues internal constructor(store: KeyValueStore) : SignalSto
|
||||
private const val NEW_LINKED_DEVICE_ID = "misc.new_linked_device_id"
|
||||
private const val NEW_LINKED_DEVICE_CREATED_TIME = "misc.new_linked_device_created_time"
|
||||
private const val STARTED_QUOTE_THUMBNAIL_MIGRATION = "misc.started_quote_thumbnail_migration"
|
||||
private const val PREFERRED_MAIN_ACTIVITY_ANCHOR_INDEX = "misc.preferred_main_activity_anchor_index"
|
||||
}
|
||||
|
||||
public override fun onFirstEverAppLaunch() {
|
||||
@@ -95,6 +96,8 @@ class MiscellaneousValues internal constructor(store: KeyValueStore) : SignalSto
|
||||
|
||||
val isChangeNumberLocked: Boolean by booleanValue(CHANGE_NUMBER_LOCK, false)
|
||||
|
||||
var preferredMainActivityAnchorIndex: Int by integerValue(PREFERRED_MAIN_ACTIVITY_ANCHOR_INDEX, -1)
|
||||
|
||||
fun lockChangeNumber() {
|
||||
putBoolean(CHANGE_NUMBER_LOCK, true)
|
||||
ChangeNumberConstraintObserver.onChange()
|
||||
|
||||
Reference in New Issue
Block a user