Add tooltip to opt-out of bubbles.

This commit is contained in:
Rashad Sookram
2021-12-07 15:34:44 -05:00
committed by Cody Henthorne
parent 63c98e92f2
commit b6f84dfa16
11 changed files with 101 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ public class TooltipValues extends SignalStoreValues {
private static final String GROUP_CALL_SPEAKER_VIEW = "tooltip.group_call_speaker_view";
private static final String GROUP_CALL_TOOLTIP_DISPLAY_COUNT = "tooltip.group_call_tooltip_display_count";
private static final String MULTI_FORWARD_DIALOG = "tooltip.multi.forward.dialog";
private static final String BUBBLE_OPT_OUT = "tooltip.bubble.opt.out";
TooltipValues(@NonNull KeyValueStore store) {
@@ -64,4 +65,12 @@ public class TooltipValues extends SignalStoreValues {
public void markMultiForwardDialogSeen() {
putBoolean(MULTI_FORWARD_DIALOG, false);
}
public boolean hasSeenBubbleOptOutTooltip() {
return getBoolean(BUBBLE_OPT_OUT, false);
}
public void markBubbleOptOutTooltipSeen() {
putBoolean(BUBBLE_OPT_OUT, true);
}
}