mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Clear some tooltips after restore, remove some legacy ones entirely.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user