mirror of
https://github.com/tijder/SmsMatrix.git
synced 2024-10-27 18:24:01 +00:00
Fix crash at startup
This commit is contained in:
parent
072ebeb1b1
commit
820036d483
@ -8,6 +8,7 @@
|
||||
<uses-permission android:name="android.permission.RECEIVE_SMS" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<application
|
||||
tools:replace="allowBackup,label"
|
||||
|
@ -113,7 +113,9 @@ public class MatrixService extends Service {
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
mx.destroy();
|
||||
if (mx != null) {
|
||||
mx.destroy();
|
||||
}
|
||||
this.mms.stopMMSMonitoring();
|
||||
this.mms = null;
|
||||
super.onDestroy();
|
||||
|
Loading…
Reference in New Issue
Block a user