forked from github/cordova-android
CB-3902: Explicitly add market URIs to CordovaWebViewClient so this always works, not just sometimes
This commit is contained in:
parent
1f58d8ee27
commit
2b6a683198
@ -189,6 +189,17 @@ public class CordovaWebViewClient extends WebViewClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Android Market
|
||||||
|
else if(url.startsWith("market:")) {
|
||||||
|
try {
|
||||||
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
|
intent.setData(Uri.parse(url));
|
||||||
|
this.cordova.getActivity().startActivity(intent);
|
||||||
|
} catch (android.content.ActivityNotFoundException e) {
|
||||||
|
LOG.e(TAG, "Error loading Google Play Store: " + url, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// All else
|
// All else
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user