Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93563bd4 authored by Michael W's avatar Michael W Committed by Bruno Martins
Browse files

Recorder: Start recording after giving permissions

* After agreeing to all the permissions, the recording should actually
  start
* Instead, the service has to be bound before and the start is aborted
* Bind the service after giving the permissions and add a delay so there
  is time to actually connect

Change-Id: I21290cca534ff533edd7a482c75b7c99d27dd443
parent 7e43fd99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,8 +224,8 @@ public class RecorderActivity extends AppCompatActivity implements
    private void toggleAfterPermissionRequest(int requestCode) {
        switch (requestCode) {
            case REQUEST_SOUND_REC_PERMS:
                setupConnection();
                toggleSoundRecorder();
                bindSoundRecService();
                new Handler().postDelayed(this::toggleSoundRecorder, 500);
                break;
            case REQUEST_SCREEN_REC_PERMS:
                toggleScreenRecorder();