Fix PCAP selection dialog sometimes not appearing

Reproduce:
1. Start the capture and select the PCAP file to write
2. Stop the capture
3. Open the PCAPdroid settings, then go back
4. Restart the capture. The PCAP selection dialog does not appear
This commit is contained in:
emanuele-f 2022-07-23 11:09:33 +02:00
parent fd4a5a382d
commit 8083755d41

View File

@ -155,7 +155,7 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
initAppState();
checkPermissions();
mPcapUri = CaptureService.getPcapUri();
mPcapUri = CaptureService.isServiceActive() ? CaptureService.getPcapUri() : null;
mCapHelper = new CaptureHelper(this);
mCapHelper.setListener(success -> {
if(!success) {