Fix a crash
This commit is contained in:
parent
f9c13e0ee6
commit
e6b7a79bee
@ -45,10 +45,12 @@ public class MyAnimeListFragment extends BaseRxFragment<MyAnimeListPresenter> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setMangaSync(MangaSync mangaSync) {
|
public void setMangaSync(MangaSync mangaSync) {
|
||||||
title.setText(mangaSync.title);
|
if (mangaSync != null) {
|
||||||
chapters.setText(mangaSync.last_chapter_read + "");
|
title.setText(mangaSync.title);
|
||||||
score.setText(mangaSync.score == 0 ? "-" : decimalFormat.format(mangaSync.score));
|
chapters.setText(mangaSync.last_chapter_read + "");
|
||||||
status.setText(getPresenter().myAnimeList.getStatus(mangaSync.status));
|
score.setText(mangaSync.score == 0 ? "-" : decimalFormat.format(mangaSync.score));
|
||||||
|
status.setText(getPresenter().myAnimeList.getStatus(mangaSync.status));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showSearchDialog() {
|
private void showSearchDialog() {
|
||||||
|
Loading…
Reference in New Issue
Block a user