@Test public void shouldRetryWithUnknownNetworkInfo() throws Exception { assertThat(networkHandler.shouldRetry(false, null)).isTrue(); assertThat(networkHandler.shouldRetry(true, null)).isTrue(); }
@Override boolean shouldRetry(boolean airplaneMode, NetworkInfo info) { return info == null || info.isConnected(); }
NetworkRequestHandler extends RequestHandler { @Override boolean shouldRetry(boolean airplaneMode, NetworkInfo info) { return info == null || info.isConnected(); } }
NetworkRequestHandler extends RequestHandler { @Override boolean shouldRetry(boolean airplaneMode, NetworkInfo info) { return info == null || info.isConnected(); } NetworkRequestHandler(Downloader downloader, Stats stats); }
NetworkRequestHandler extends RequestHandler { @Override boolean shouldRetry(boolean airplaneMode, NetworkInfo info) { return info == null || info.isConnected(); } NetworkRequestHandler(Downloader downloader, Stats stats); @Override boolean canHandleRequest(Request data); @Override @Nullable Result load(Request request, int networkPolicy); }
NetworkRequestHandler extends RequestHandler { @Override boolean shouldRetry(boolean airplaneMode, NetworkInfo info) { return info == null || info.isConnected(); } NetworkRequestHandler(Downloader downloader, Stats stats); @Override boolean canHandleRequest(Request data); @Override @Nullable Result load(Request request, int networkPolicy);  }