test
This commit is contained in:
parent
c4cc20ad9c
commit
6d0cb452e9
1 changed files with 1 additions and 5 deletions
|
@ -129,11 +129,6 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log.i("a", "1"); // STATIC
|
||||
super.onCreate(savedInstanceState);
|
||||
try {
|
||||
unregisterReceiver(notificationReceiver);
|
||||
}
|
||||
catch (Exception ignored) {}
|
||||
|
||||
notificationReceiver = new NotificationReceiver();
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
@ -617,6 +612,7 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
Log.i("a", "onDestroy"); // STATIC
|
||||
super.onDestroy();
|
||||
try {
|
||||
unregisterReceiver(notificationReceiver);
|
||||
unregisterReceiver(smsReceiver);
|
||||
} catch(IllegalArgumentException e) {
|
||||
Log.i("ppp", Arrays.toString(e.getStackTrace()));
|
||||
|
|
Loading…
Add table
Reference in a new issue