Skip to content

Commit 26ce006

Browse files
committed
append new method to working with a inner method
call new method `getInstance()` and pass context as parameter to calling the `getCurrentlyReadingBooks()` method correctly
1 parent d4a6af7 commit 26ce006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AUBLibrary/app/src/main/java/com/tss/aublibrary/CurrentlyReadingBookActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected void onCreate(Bundle savedInstanceState) {
2727
recyclerView.setLayoutManager(new LinearLayoutManager(this));
2828

2929
// set data
30-
bookRecViewAdapter.setBooks(Utils.getCurrentlyReadingBooks());
30+
bookRecViewAdapter.setBooks(Utils.getInstance(this).getCurrentlyReadingBooks());
3131
}
3232

3333
@Override

0 commit comments

Comments
 (0)