|
|
|
@ -54,6 +54,7 @@ import com.github.catvod.net.OkHttp; |
|
|
|
import com.github.catvod.utils.Trans; |
|
|
|
import com.github.catvod.utils.Trans; |
|
|
|
import com.google.common.net.HttpHeaders; |
|
|
|
import com.google.common.net.HttpHeaders; |
|
|
|
import com.permissionx.guolindev.PermissionX; |
|
|
|
import com.permissionx.guolindev.PermissionX; |
|
|
|
|
|
|
|
import java.security.SecureRandom; |
|
|
|
|
|
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus; |
|
|
|
import org.greenrobot.eventbus.EventBus; |
|
|
|
import org.greenrobot.eventbus.Subscribe; |
|
|
|
import org.greenrobot.eventbus.Subscribe; |
|
|
|
@ -161,7 +162,7 @@ public class VodFragment extends BaseFragment implements SiteCallback, FilterCal |
|
|
|
private void updateHot() { |
|
|
|
private void updateHot() { |
|
|
|
App.post(mRunnable, 10 * 1000); |
|
|
|
App.post(mRunnable, 10 * 1000); |
|
|
|
if (mHots.isEmpty() || mHots.size() < 10) return; |
|
|
|
if (mHots.isEmpty() || mHots.size() < 10) return; |
|
|
|
mBinding.hot.setText(mHots.get(new Random().nextInt(11))); |
|
|
|
mBinding.hot.setText(mHots.get(new SecureRandom().nextInt(11))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Result handle(Result result) { |
|
|
|
private Result handle(Result result) { |
|
|
|
|