Move switch camera button to self pip.

This commit is contained in:
Cody Henthorne
2023-12-08 10:37:05 -05:00
parent e22ff1bbfe
commit 7bba4ed820
9 changed files with 166 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ public class TooltipValues extends SignalStoreValues {
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";
private static final String CALLING_SWITCH_CAMERA = "tooltip.calling.switch_camera";
TooltipValues(@NonNull KeyValueStore store) {
super(store);
@@ -82,4 +82,12 @@ public class TooltipValues extends SignalStoreValues {
public void markProfileSettingsQrCodeTooltipSeen() {
putBoolean(PROFILE_SETTINGS_QR_CODE, false);
}
public boolean showCallingSwitchCameraTooltip() {
return getBoolean(CALLING_SWITCH_CAMERA, true);
}
public void markCallingSwitchCameraTooltipSeen() {
putBoolean(CALLING_SWITCH_CAMERA, false);
}
}