Fix a crash
This commit is contained in:
parent
f9c13e0ee6
commit
e6b7a79bee
1 changed files with 6 additions and 4 deletions
|
@ -45,11 +45,13 @@ public class MyAnimeListFragment extends BaseRxFragment<MyAnimeListPresenter> {
|
|||
}
|
||||
|
||||
public void setMangaSync(MangaSync mangaSync) {
|
||||
if (mangaSync != null) {
|
||||
title.setText(mangaSync.title);
|
||||
chapters.setText(mangaSync.last_chapter_read + "");
|
||||
score.setText(mangaSync.score == 0 ? "-" : decimalFormat.format(mangaSync.score));
|
||||
status.setText(getPresenter().myAnimeList.getStatus(mangaSync.status));
|
||||
}
|
||||
}
|
||||
|
||||
private void showSearchDialog() {
|
||||
if (dialog == null)
|
||||
|
|
Reference in a new issue