Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
修正一些错误
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Aug 24, 2014
1 parent fb8bc2c commit b1cf11e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
<string name="copyed">Copyed</string>
<string name="send">Send</string>
<string name="detail">Detail</string>
<string name="delete2">Detail (images included)</string>
<string name="delete2">Delete (images included)</string>
<string name="comment">Comment</string>
<string name="info">Info</string>
<string name="reply">Reply</string>
Expand Down
6 changes: 4 additions & 2 deletions src/com/hippo/ehviewer/ui/GalleryDetailActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,10 @@ private void doLayout() {
}

// Comment
if (mGalleryInfo instanceof GalleryDetail) {
GalleryDetail galleryDetail = (GalleryDetail)mGalleryInfo;
GalleryDetail galleryDetail;
if (mGalleryInfo instanceof GalleryDetail &&
(galleryDetail = (GalleryDetail)mGalleryInfo) != null &&
galleryDetail.comments != null) {
mDividerTC.setVisibility(View.VISIBLE);
mDetailComment.setVisibility(View.VISIBLE);

Expand Down

0 comments on commit b1cf11e

Please sign in to comment.