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

Unverified Commit 6067d35d authored by 2bllw8's avatar 2bllw8 Committed by Michael Bestas
Browse files

Recorder: pause instead of stopping on phone call

Change-Id: If483574418a54436db56feb53d400d1b2b36454e
parent 083a2c99
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -88,9 +88,8 @@ public class RecorderActivity extends AppCompatActivity implements
        public void onReceive(Context context, Intent intent) {
            if (TelephonyManager.ACTION_PHONE_STATE_CHANGED.equals(intent.getAction())) {
                int state = intent.getIntExtra(TelephonyManager.EXTRA_STATE, -1);
                if (state == TelephonyManager.CALL_STATE_OFFHOOK &&
                        Utils.isRecording(context)) {
                    toggleSoundRecorder();
                if (state == TelephonyManager.CALL_STATE_OFFHOOK) {
                    togglePause();
                }
            }
        }