WeChat.apk(点击下载) / b1.java


package com.tencent.mm.plugin.webview.ui.tools;

import android.os.Bundle;
import com.tencent.mm.pluginsdk.ui.tools.h2;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.Util;

public class b1 implements h2.a {

    /* renamed from: a  reason: collision with root package name */
    public final /* synthetic */ WebViewLongClickHelper f166650a;

    public b1(WebViewLongClickHelper webViewLongClickHelper) {
        this.f166650a = 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.f166650a.f166406i)) {
                WebViewLongClickHelper webViewLongClickHelper = this.f166650a;
                webViewLongClickHelper.f166406i = WebViewLongClickHelper.a(webViewLongClickHelper);
            }
            if (Util.isNullOrNil(this.f166650a.f166406i) || (!this.f166650a.f166406i.startsWith("http://mp.weixin.qq.com/s?") && !this.f166650a.f166406i.startsWith("https://mp.weixin.qq.com/s?") && !this.f166650a.f166406i.startsWith("http://mp.weixin.qq.com/s/") && !this.f166650a.f166406i.startsWith("https://mp.weixin.qq.com/s/"))) {
                bundle.putInt("KWebSearchSendDataImagePath_from_source", 14);
            } else {
                bundle.putInt("KWebSearchSendDataImagePath_from_source", 11);
            }
            this.f166650a.f166412o.getController().f164510y.KM(53, bundle, this.f166650a.f166412o.getController().g());
        } catch (Exception e15) {
            Log.w("MicroMsg.WebViewLongClickHelper", "processImgSosoLogic RemoteException:%s", e15.getLocalizedMessage());
        }
    }
}