public static a a(Activity paramActivity, com.intowow.sdk.f.a parama, RelativeLayout.LayoutParams paramLayoutParams1, RelativeLayout.LayoutParams paramLayoutParams2) { paramActivity = new a(paramActivity); paramActivity.setLayoutParams(paramLayoutParams1); paramActivity.a(parama, paramLayoutParams2); paramActivity.setVisibility(8); return paramActivity; }
public static a a(Activity paramActivity, com.intowow.sdk.f.a parama, RelativeLayout.LayoutParams paramLayoutParams) { RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(-2, -2); localLayoutParams.addRule(13); paramActivity = new a(paramActivity); paramActivity.setLayoutParams(localLayoutParams); paramActivity.a(parama, paramLayoutParams); paramActivity.setVisibility(8); return paramActivity; }
public t(FbFriendListActivity fbfriendlistactivity, Activity activity, List list) { a = fbfriendlistactivity; super(activity, as.o, list); b = LayoutInflater.from(activity); c = list; d = new LinkedList(); fbfriendlistactivity = c.iterator(); do { if (!fbfriendlistactivity.hasNext()) { return; } activity = (FbFriend)fbfriendlistactivity.next(); d.add(activity.a()); } while (true); }
public final void a(w wVar, HashMap hashMap, WebView webView) { String str = (String) hashMap.get("action"); if (str == null) { g.a("No \"action\" parameter in a video gmsg."); } else if (webView instanceof e) { e eVar = (e) webView; Activity i = eVar.i(); if (i == null) { g.a("Could not get adActivity for a video gmsg."); } else { boolean equals = str.equals("new"); boolean equals2 = str.equals("position"); DisplayMetrics a; int a2; if (equals || equals2) { a = AdUtil.a(i); a2 = a(hashMap, "x", 0, a); int a3 = a(hashMap, "y", 0, a); int a4 = a(hashMap, "w", -1, a); int a5 = a(hashMap, "h", -1, a); if (equals && i.a() == null) { i.b(a2, a3, a4, a5); } else { i.a(a2, a3, a4, a5); } } else { c a6 = i.a(); if (a6 == null) { h hVar = a; h.a(eVar, "onVideoEvent", "{'event': 'error', 'what': 'no_video_view'}"); } else if (str.equals("click")) { a = AdUtil.a(i); int a7 = a(hashMap, "x", 0, a); a2 = a(hashMap, "y", 0, a); long uptimeMillis = SystemClock.uptimeMillis(); a6.a(MotionEvent.obtain(uptimeMillis, uptimeMillis, 0, (float) a7, (float) a2, 0)); } else if (str.equals("controls")) { str = (String) hashMap.get("enabled"); if (str == null) { g.a("No \"enabled\" parameter in a controls video gmsg."); } else if (str.equals("true")) { a6.a(true); } else { a6.a(false); } } else if (str.equals("currentTime")) { str = (String) hashMap.get("time"); if (str == null) { g.a("No \"time\" parameter in a currentTime video gmsg."); } else { try { a6.a((int) (Float.parseFloat(str) * 1000.0f)); } catch (NumberFormatException e) { g.a( new StringBuilder("Could not parse \"time\" parameter: ") .append(str) .toString()); } } } else if (str.equals("hide")) { a6.setVisibility(ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_DEFAULT); } else if (str.equals("load")) { a6.a(); } else if (str.equals("pause")) { a6.b(); } else if (str.equals("play")) { a6.c(); } else if (str.equals("show")) { a6.setVisibility(0); } else if (str.equals("src")) { a6.a((String) hashMap.get("src")); } else { g.a(new StringBuilder("Unknown video action: ").append(str).toString()); } } } } else { g.a("Could not get adWebView for a video gmsg."); } }