Fix Pebble app store search

This commit is contained in:
Arjan Schrijver
2025-12-25 14:45:08 +01:00
committed by Arjan Schrijver
parent 8cff524005
commit 2259e6ebb5
@@ -134,7 +134,11 @@ public class GBWebClient extends WebViewClient {
if (!forceLocal && !directInternetAccess && InternetHelperSingleton.INSTANCE.ensureInternetHelperBound()) { if (!forceLocal && !directInternetAccess && InternetHelperSingleton.INSTANCE.ensureInternetHelperBound()) {
LOG.debug("WEBVIEW forwarding request to the internet helper"); LOG.debug("WEBVIEW forwarding request to the internet helper");
try { try {
return InternetHelperSingleton.INSTANCE.send(requestedUri); WebResourceResponse wrr = InternetHelperSingleton.INSTANCE.send(requestedUri);
if (wrr != null && wrr.getStatusCode() < 400)
return wrr;
else
return null;
} catch (RemoteException | InterruptedException e) { } catch (RemoteException | InterruptedException e) {
LOG.warn("Error downloading data from {}", requestedUri, e); LOG.warn("Error downloading data from {}", requestedUri, e);
} }