Fix issue with bottom sheets.

This commit is contained in:
Alex Hart
2023-01-31 10:00:25 -04:00
parent 691520bc75
commit e90074ffef
18 changed files with 120 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
import org.signal.core.util.logging.Log;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.util.BottomSheetUtil;
import org.thoughtcrime.securesms.util.WindowUtil;
/**
* A bottom sheet to be shown when we need to prompt the user to fill out a reCAPTCHA.
@@ -45,6 +46,12 @@ public final class RecaptchaProofBottomSheetFragment extends BottomSheetDialogFr
return view;
}
@Override
public void onResume() {
super.onResume();
WindowUtil.initializeScreenshotSecurity(requireContext(), requireDialog().getWindow());
}
@Override
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
Log.i(TAG, "Showing reCAPTCHA proof bottom sheet.");