This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/microsoft/TypeScript/blob/ba5e86f1406f39e89d56d4b32fd6ff8de09a0bf3/src/compiler/checker.ts | |
// 1. add this line to ln:3 | |
export const _conditionalTypes: any = {} | |
// 2. then replace ln:12303 to ln:12360 | |
function trackConditionalType() { | |
// one time stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mWebView.setWebViewClient(new WebViewClient() { | |
@Override | |
public WebResourceResponse shouldInterceptRequest(WebView view, String url) { | |
if (url.contains("creditcard_cvc.jpg")) { | |
Log.v("WebView", "Replacing [" + url + "] with [R.raw.tmp_replacement]"); | |
ContentResolver contentResolver = getActivity().getContentResolver(); | |
return new WebResourceResponse(contentResolver.getType(Uri.parse(url)), "UTF-8", getResources().openRawResource(R.raw.tmp_replacement)); | |
} | |
return super.shouldInterceptRequest(view, url); |