This commit is contained in:
seven332 committed 2016-03-27 22:49:48 +08:00
1 parent 337c859040
commit 0bc4569084
1 file changed
+5 -3
@@ -453,10 +453,12 @@ public final class GalleryCommentsScene extends ToolbarScene
}
private void onCommentGallerySuccess(GalleryComment[] result) {
mComments = result;
if (null != mAdapter) {
mAdapter.notifyDataSetChanged();
if (null == mAdapter) {
return;
}
mComments = result;
mAdapter.notifyDataSetChanged();
Bundle re = new Bundle();
re.putParcelableArray(KEY_COMMENTS, result);
setResult(SceneFragment.RESULT_OK, re);