Add support for market:// urls

This commit is contained in:
akshitkrnagpal 2019-06-27 14:57:14 -04:00 committed by Josh Matthews
parent a2b195aff8
commit 027514c3e6
6 changed files with 60 additions and 2 deletions

View file

@ -169,6 +169,8 @@ public class Servo {
}
public interface Client {
boolean onAllowNavigation(String url);
void onLoadStarted();
void onLoadEnded();
@ -234,6 +236,10 @@ public class Servo {
mRunCallback.inGLThread(() -> mGfxCb.animationStateChanged(animating));
}
public boolean onAllowNavigation(String url) {
return mClient.onAllowNavigation(url);
}
public void onLoadStarted() {
mRunCallback.inUIThread(() -> mClient.onLoadStarted());
}