Skip to content

Commit d1e0926

Browse files
committed
add new method (getInstance()) to fix error to use getFavoriteBooks()
or working with that
1 parent 26ce006 commit d1e0926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AUBLibrary/app/src/main/java/com/tss/aublibrary/FavoriteActivity.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.getFavoriteBooks());
30+
bookRecViewAdapter.setBooks(Utils.getInstance(this).getFavoriteBooks());
3131
}
3232

3333
@Override

0 commit comments

Comments
 (0)