1
0
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:
Gerben Droogers 2019-12-03 22:25:12 +01:00
parent 072ebeb1b1
commit 820036d483
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -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();