[mobile] fix prev bug

pull/123/head
FongMi 3 years ago
parent 9ece618b62
commit bc0a6af445
  1. 3
      app/src/mobile/java/com/fongmi/android/tv/ui/adapter/EpisodeAdapter.java

@ -56,8 +56,7 @@ public class EpisodeAdapter extends RecyclerView.Adapter<EpisodeAdapter.ViewHold
public Vod.Flag.Episode getPrev() {
int current = getPosition();
int max = getItemCount() - 1;
current = ++current > max ? max : current;
current = --current < 0 ? 0 : current;
return mItems.get(current);
}

Loading…
Cancel
Save