feat: add an isVisisble check before opening the camera

This is another measure to prevent the event from making multiple opened compose screens (like when you click on a notification when you are already replying to someone) open the camera at the same time and add a repeated attachment to all opened compose screens
This commit is contained in:
LucasGGamerM
2023-06-11 21:48:49 -03:00
parent 636bab51da
commit 123fef2cc7

View File

@@ -1461,6 +1461,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
@Subscribe @Subscribe
public void onTakePictureRequest(TakePictureRequestEvent ev){ public void onTakePictureRequest(TakePictureRequestEvent ev){
if(isVisible())
openCamera(); openCamera();
} }