package com.tencent.mm.plugin.finder.webview; import android.os.Bundle; import android.os.RemoteException; import com.tencent.mm.pluginsdk.ui.tools.h2; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.Util; public class b0 implements h2.a { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ WebViewLongClickHelper f122487a; public b0(WebViewLongClickHelper webViewLongClickHelper) { this.f122487a = webViewLongClickHelper; } @Override // com.tencent.mm.pluginsdk.ui.tools.h2.a public void a(String str) { if (Util.isNullOrNil(str)) { Log.w("MicroMsg.WebViewLongClickHelper", "processImgSosoLogic share image to friend fail, imgPath is null"); return; } Bundle bundle = new Bundle(); try { bundle.putString("web_search_data_ui_image_path", str); if (Util.isNullOrNil(this.f122487a.f122429i)) { WebViewLongClickHelper webViewLongClickHelper = this.f122487a; webViewLongClickHelper.f122429i = webViewLongClickHelper.f().getCurrentURL(); } if (Util.isNullOrNil(this.f122487a.f122429i) || (!this.f122487a.f122429i.startsWith("http://mp.weixin.qq.com/s?") && !this.f122487a.f122429i.startsWith("https://mp.weixin.qq.com/s?") && !this.f122487a.f122429i.startsWith("http://mp.weixin.qq.com/s/") && !this.f122487a.f122429i.startsWith("https://mp.weixin.qq.com/s/"))) { bundle.putInt("KWebSearchSendDataImagePath_from_source", 14); } else { bundle.putInt("KWebSearchSendDataImagePath_from_source", 11); } this.f122487a.f().getInvoke().KM(53, bundle, this.f122487a.f().getController().g()); } catch (RemoteException e15) { Log.w("MicroMsg.WebViewLongClickHelper", "processImgSosoLogic RemoteException:%s", e15.getLocalizedMessage()); } } }