Fix potential tooltip crash.
This commit is contained in:
parent
cfb22825f4
commit
bfd0363390
1 changed files with 4 additions and 1 deletions
|
@ -301,7 +301,10 @@ public class CameraXFragment extends Fragment implements CameraFragment {
|
|||
}
|
||||
|
||||
private void neverDisplayVideoRecordingTooltipAgain() {
|
||||
TextSecurePreferences.setHasSeenVideoRecordingTooltip(requireContext(), true);
|
||||
Context context = getContext();
|
||||
if (context != null) {
|
||||
TextSecurePreferences.setHasSeenVideoRecordingTooltip(requireContext(), true);
|
||||
}
|
||||
}
|
||||
|
||||
private void hideAndDisableControlsForVideoRecording(@NonNull View captureButton,
|
||||
|
|
Loading…
Add table
Reference in a new issue