コード例 #1
0
 public boolean shouldOverrideUrlLoading(WebView webView, String url) {
   com.google.ads.util.b.a("shouldOverrideUrlLoading(\"" + url + "\")");
   Uri parse = Uri.parse(url);
   HashMap b = AdUtil.b(parse);
   if (b != null) {
     String str = (String) b.get("ai");
     if (str != null) {
       this.a.l().a(str);
     }
   }
   if (c.a(parse)) {
     c.a(this.a, this.d, parse, webView);
     return true;
   } else if (this.f) {
     if (AdUtil.a(parse)) {
       return super.shouldOverrideUrlLoading(webView, url);
     }
     b = new HashMap();
     b.put(AdActivity.URL_PARAM, url);
     AdActivity.launchAdActivity(this.a, new e("intent", b));
     return true;
   } else if (this.e) {
     b = new HashMap();
     b.put(AdActivity.URL_PARAM, parse.toString());
     AdActivity.launchAdActivity(this.a, new e("intent", b));
     return true;
   } else {
     com.google.ads.util.b.e("URL is not a GMSG and can't handle URL: " + url);
     return true;
   }
 }
コード例 #2
0
 public void a_(d dVar, Map map, Uri uri, WebView webView) {
   HashMap b = AdUtil.b(uri);
   if (b == null) {
     b.e("An error occurred while parsing the message parameters.");
   } else {
     String a = a(uri, b);
     if (a == null) {
       b.e("An error occurred while parsing the message.");
     } else {
       n nVar = (n) map.get(a);
       if (nVar == null) {
         b.e("No AdResponse found, <message: " + a + ">");
       } else {
         nVar.a(dVar, b, webView);
       }
     }
   }
 }