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.RECEIVE_SMS" />
|
||||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
tools:replace="allowBackup,label"
|
tools:replace="allowBackup,label"
|
||||||
|
@ -113,7 +113,9 @@ public class MatrixService extends Service {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
if (mx != null) {
|
||||||
mx.destroy();
|
mx.destroy();
|
||||||
|
}
|
||||||
this.mms.stopMMSMonitoring();
|
this.mms.stopMMSMonitoring();
|
||||||
this.mms = null;
|
this.mms = null;
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user