main
jun 8 months ago
parent 35eeecdcc4
commit 3184797246
  1. 14
      app/src/main/java/com/github/tvbox/osc/ui/adapter/SeriesAdapter.java
  2. 2
      app/src/main/java/com/github/tvbox/osc/util/FileUtils.java

@ -46,13 +46,13 @@ public class SeriesAdapter extends BaseQuickAdapter<VodInfo.VodSeries, BaseViewH
if (position < spanCount) {
helper.itemView.setNextFocusUpId(R.id.mSeriesSortTv);
}
int totalCount = getData().size();
int remainder = totalCount % spanCount;
int lastRowStart = remainder == 0 ? totalCount - spanCount : totalCount - remainder;
if (position >= lastRowStart) {
helper.itemView.setNextFocusDownId(R.id.tvPlay);
}
// int totalCount = getData().size();
// int remainder = totalCount % spanCount;
// int lastRowStart = remainder == 0 ? totalCount - spanCount : totalCount - remainder;
//
// if (position >= lastRowStart) {
// helper.itemView.setNextFocusDownId(R.id.tvPlay);
// }
}
}
}

@ -134,7 +134,7 @@ public class FileUtils {
public static boolean isWeekAgo(File file)
{
long oneWeekMillis = 15L * 24 * 60 * 60 * 1000;
long oneWeekMillis = 3L * 24 * 60 * 60 * 1000;
long timeDiff = System.currentTimeMillis() - file.lastModified();
return timeDiff > oneWeekMillis;
}

Loading…
Cancel
Save