Skip to content

Commit

Permalink
fix: proxy select order
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Aug 13, 2023
1 parent e743979 commit 6e9f272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public void resetCurrentItem() {
}

public int getRealCount() {
int size = photos.size() > 0 ? 1 : 0;
int size = photos.size();
if (hasActiveVideo) {
size++;
}
Expand Down Expand Up @@ -1180,6 +1180,8 @@ public void onAnimationReady(ImageReceiver imageReceiver) {
callback.onClick();
});

item.imageView.setTag(realPosition);

return item;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ protected void dispatchDraw(Canvas canvas) {
});
listView.setOnItemLongClickListener((view, position) -> {
if (position >= proxyStartRow && position < proxyEndRow) {
final SharedConfig.ProxyInfo info = SharedConfig.proxyList.get(position - proxyStartRow);
final SharedConfig.ProxyInfo info = proxyList.get(position - proxyStartRow);
BottomBuilder builder = new BottomBuilder(context);
builder.addItems(new String[]{

Expand Down

0 comments on commit 6e9f272

Please sign in to comment.