Skip to content

Commit 08546a5

Browse files
committed
Also include registration of EventBus into the Readme
1 parent 883e3de commit 08546a5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ The request will automatically happen on a worker thread, thus not blocking the
3434
A simple query for the news might look like this:
3535

3636
```java
37+
@Override
38+
public void onStart() {
39+
super.onStart();
40+
41+
EventBus.getDefault().register(this);
42+
}
43+
44+
@Override
45+
public void onStop() {
46+
EventBus.getDefault().unregister(this);
47+
48+
super.onStop();
49+
}
50+
3751
public void loadNews(int page){
3852
ProxerConnection.loadNews(page).execute();
3953
}

0 commit comments

Comments
 (0)