mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-15 18:13:57 +00:00
避免热插卡时FC
This commit is contained in:
parent
30a4f6edb6
commit
41f75bdc84
@ -180,7 +180,12 @@ public class MainActivity extends AppCompatActivity implements ReFlashListView.I
|
||||
Log.d(TAG, "onDestroy");
|
||||
super.onDestroy();
|
||||
//取消注册广播
|
||||
unregisterReceiver(smsBroadcastReceiver);
|
||||
try {
|
||||
if (smsBroadcastReceiver != null)
|
||||
unregisterReceiver(smsBroadcastReceiver);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "unregisterReceiver fail:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public void logDetail(LogVo logVo) {
|
||||
|
Loading…
Reference in New Issue
Block a user