Add a QR code link and tooltip in the profile settings.

This commit is contained in:
Greyson Parrelli
2023-11-03 10:47:35 -04:00
parent 528ccc1e9d
commit 29350ab7b0
15 changed files with 346 additions and 159 deletions

View File

@@ -14,6 +14,7 @@ public class TooltipValues extends SignalStoreValues {
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";
private static final String PROFILE_SETTINGS_QR_CODE = "tooltip.profile_settings_qr_code";
TooltipValues(@NonNull KeyValueStore store) {
@@ -73,4 +74,12 @@ public class TooltipValues extends SignalStoreValues {
public void markBubbleOptOutTooltipSeen() {
putBoolean(BUBBLE_OPT_OUT, true);
}
public boolean showProfileSettingsQrCodeTooltop() {
return getBoolean(PROFILE_SETTINGS_QR_CODE, true);
}
public void markProfileSettingsQrCodeTooltipSeen() {
putBoolean(PROFILE_SETTINGS_QR_CODE, false);
}
}