Don't show linked device bottom sheets if you've seen them before.

This commit is contained in:
Greyson Parrelli
2024-12-17 17:00:29 -05:00
parent 0c758ccc1e
commit 0cfda852cf
6 changed files with 38 additions and 23 deletions

View File

@@ -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);
}
}