mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix Pebble app store search
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user