Compare commits
2 commits
ea492ac379
...
58e3ba8f18
Author | SHA1 | Date | |
---|---|---|---|
![]() |
58e3ba8f18 | ||
![]() |
2e645c8ceb |
1 changed files with 1 additions and 1 deletions
|
@ -129,6 +129,7 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log.i("a", "1"); // STATIC
|
||||
super.onCreate(savedInstanceState);
|
||||
unregisterReceiver(notificationReceiver);
|
||||
notificationReceiver = new NotificationReceiver();
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
@ -612,7 +613,6 @@ 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