fix crash
This commit is contained in:
parent
3545fa83eb
commit
cab0c00c90
1 changed files with 3 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue