Skip to content

Commit

Permalink
添加当前列表内容随机查看功能
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojieonly committed May 29, 2024
1 parent c384835 commit c8505a8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ public boolean onItemClick(View view, GalleryInfo gi) {
args.putParcelable(GalleryDetailScene.KEY_GALLERY_INFO, gi);
Announcer announcer = new Announcer(GalleryDetailScene.class).setArgs(args);
View thumb;
if (null != (thumb = view.findViewById(R.id.thumb))) {
if (null != view && null != (thumb = view.findViewById(R.id.thumb))) {
announcer.setTranHelper(new EnterGalleryDetailTransaction(thumb));
}
startScene(announcer);
Expand Down Expand Up @@ -1427,7 +1427,7 @@ public void onClickSecondaryFab(FabLayout view, FloatingActionButton fab, int po
if (gInfoL == null || gInfoL.isEmpty()) {
return;
}
onItemClick(null,gInfoL.get((int) (Math.random() * gInfoL.size())));
onItemClick(null, gInfoL.get((int) (Math.random() * gInfoL.size())));
break;
}

Expand Down Expand Up @@ -2017,7 +2017,7 @@ protected void getPageData(int taskId, int type, int page) {
request.setMethod(EhClient.METHOD_GET_GALLERY_LIST);
request.setCallback(new GetGalleryListListener(getContext(),
activity.getStageId(), getTag(), taskId));
request.setArgs(url,mUrlBuilder.getMode());
request.setArgs(url, mUrlBuilder.getMode());
mClient.execute(request);
}
}
Expand All @@ -2041,7 +2041,7 @@ protected void getExPageData(int pageAction, int taskId, int page) {
request.setMethod(EhClient.METHOD_GET_GALLERY_LIST);
request.setCallback(new GetGalleryListListener(getContext(),
activity.getStageId(), getTag(), taskId));
request.setArgs(url,mUrlBuilder.getMode());
request.setArgs(url, mUrlBuilder.getMode());
mClient.execute(request);
}

Expand Down

0 comments on commit c8505a8

Please sign in to comment.