diff --git a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Prog.java b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Prog.java index 3efd5ea..1d83924 100644 --- a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Prog.java +++ b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Prog.java @@ -527,12 +527,12 @@ public class Prog extends AbsLayout { if(sches==null) return false; var local = milli + Dates.zoneOff; var time = local % 86400000L; - long week = -1; + int week = -1; for(var sche : sches) { if(notInRange(sche.startDate, local, sche.endDate)) continue; if(notInRange(sche.startTime, time, sche.endTime)) continue; if(sche.weeks==null) return true; - if(week==-1) week = (local / 86400000L + 4) % 7; + if(week==-1) week = ((int)(local / 86400000L) + 4) % 7; if(sche.weeks.contains(week)) return true; } return false;