Clear some tooltips after restore, remove some legacy ones entirely.

This commit is contained in:
Greyson Parrelli
2025-09-03 11:23:16 -04:00
parent 08a8c56d5c
commit b44cd5d4c4
8 changed files with 7 additions and 87 deletions

View File

@@ -243,6 +243,8 @@ class SignalStore(context: Application, private val store: KeyValueStore) {
val imageEditor: ImageEditorValues
get() = instance!!.imageEditorValues
@JvmStatic
@get:JvmName("notificationProfile")
val notificationProfile: NotificationProfileValues
get() = instance!!.notificationProfileValues

View File

@@ -14,8 +14,6 @@ public class UiHintValues extends SignalStoreValues {
private static final String HAS_SET_OR_SKIPPED_USERNAME_CREATION = "uihints.has_set_or_skipped_username_creation";
private static final String NEVER_DISPLAY_PULL_TO_FILTER_TIP = "uihints.never_display_pull_to_filter_tip";
private static final String HAS_SEEN_SCHEDULED_MESSAGES_INFO_ONCE = "uihints.has_seen_scheduled_messages_info_once";
private static final String HAS_SEEN_TEXT_FORMATTING_ALERT = "uihints.text_formatting.has_seen_alert";
private static final String HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT = "uihints.edit_message.has_not_seen_beta_alert";
private static final String HAS_SEEN_SAFETY_NUMBER_NUX = "uihints.has_seen_safety_number_nux";
private static final String DECLINED_NOTIFICATION_LOGS_PROMPT = "uihints.declined_notification_logs";
private static final String LAST_NOTIFICATION_LOGS_PROMPT_TIME = "uihints.last_notification_logs_prompt";
@@ -43,7 +41,7 @@ public class UiHintValues extends SignalStoreValues {
@Override
@NonNull List<String> getKeysToIncludeInBackup() {
return Arrays.asList(NEVER_DISPLAY_PULL_TO_FILTER_TIP, HAS_COMPLETED_USERNAME_ONBOARDING, HAS_SEEN_TEXT_FORMATTING_ALERT, HAS_EVER_ENABLED_REMOTE_BACKUPS);
return Arrays.asList(NEVER_DISPLAY_PULL_TO_FILTER_TIP, HAS_COMPLETED_USERNAME_ONBOARDING, HAS_EVER_ENABLED_REMOTE_BACKUPS);
}
public void markHasSeenGroupSettingsMenuToast() {
@@ -103,22 +101,6 @@ public class UiHintValues extends SignalStoreValues {
return getInteger(NEVER_DISPLAY_PULL_TO_FILTER_TIP, 0);
}
public boolean hasNotSeenTextFormattingAlert() {
return getBoolean(HAS_SEEN_TEXT_FORMATTING_ALERT, true);
}
public void markHasSeenTextFormattingAlert() {
putBoolean(HAS_SEEN_TEXT_FORMATTING_ALERT, false);
}
public boolean hasNotSeenEditMessageBetaAlert() {
return getBoolean(HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT, true);
}
public void markHasSeenEditMessageBetaAlert() {
putBoolean(HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT, false);
}
public boolean hasSeenSafetyNumberUpdateNux() {
return getBoolean(HAS_SEEN_SAFETY_NUMBER_NUX, false);
}