mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Don't show linked device bottom sheets if you've seen them before.
This commit is contained in:
@@ -29,6 +29,8 @@ public class UiHintValues extends SignalStoreValues {
|
||||
private static final String LAST_SUPPORT_VERSION_SEEN = "uihints.last_support_version_seen";
|
||||
private static final String HAS_EVER_ENABLED_REMOTE_BACKUPS = "uihints.has_ever_enabled_remote_backups";
|
||||
private static final String HAS_SEEN_CHAT_FOLDERS_EDUCATION_SHEET = "uihints.has_seen_chat_folders_education_sheet";
|
||||
private static final String HAS_SEEN_LINK_DEVICE_QR_EDUCATION_SHEET = "uihints.has_seen_link_device_qr_education_sheet";
|
||||
private static final String HAS_SEEN_LINK_DEVICE_AUTH_SHEET = "uihints.has_seen_link_device_auth_sheet";
|
||||
|
||||
UiHintValues(@NonNull KeyValueStore store) {
|
||||
super(store);
|
||||
@@ -218,4 +220,20 @@ public class UiHintValues extends SignalStoreValues {
|
||||
public boolean getHasSeenChatFoldersEducationSheet() {
|
||||
return getBoolean(HAS_SEEN_CHAT_FOLDERS_EDUCATION_SHEET, false);
|
||||
}
|
||||
|
||||
public void markHasSeenLinkDeviceQrEducationSheet() {
|
||||
putBoolean(HAS_SEEN_LINK_DEVICE_QR_EDUCATION_SHEET, true);
|
||||
}
|
||||
|
||||
public boolean hasSeenLinkDeviceQrEducationSheet() {
|
||||
return getBoolean(HAS_SEEN_LINK_DEVICE_QR_EDUCATION_SHEET, false);
|
||||
}
|
||||
|
||||
public void markHasSeenLinkDeviceAuthSheet() {
|
||||
putBoolean(HAS_SEEN_LINK_DEVICE_AUTH_SHEET, true);
|
||||
}
|
||||
|
||||
public boolean hasSeenLinkDeviceAuthSheet() {
|
||||
return getBoolean(HAS_SEEN_LINK_DEVICE_AUTH_SHEET, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user