fix crash

This commit is contained in:
Alexey Kuznetsov 2025-05-31 20:16:17 +03:00
commit cab0c00c90

View file

@ -396,10 +396,11 @@ public class RecordingActivity extends AppCompatThemeActivity {
receiver.filter.addAction(ACTION_FINISH_RECORDING);
receiver.registerReceiver(this);
pscl = new PhoneStateChangeListener(this);
final SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(this);
if (shared.getBoolean(AudioApplication.PREFERENCE_CALL, false))
if (shared.getBoolean(AudioApplication.PREFERENCE_CALL, false)) {
pscl = new PhoneStateChangeListener(this);
pscl.create();
}
final View cancel = findViewById(R.id.recording_cancel);
cancel.setOnClickListener(new View.OnClickListener() {