得物.apk(点击下载) / l.java


package jf;

import android.net.Uri;
import com.alibaba.android.arouter.core.LogisticsCenter;
import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.launcher.ARouter;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.shizhuang.duapp.common.bean.ScreenShotShareWhitList;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import qc.f;

/* compiled from: ScreenShotShareUtils.kt */
public final class l implements Runnable {
    public static ChangeQuickRedirect changeQuickRedirect;
    public final /* synthetic */ ScreenShotShareWhitList b;

    public l(ScreenShotShareWhitList screenShotShareWhitList) {
        this.b = screenShotShareWhitList;
    }

    public final void run() {
        ScreenShotShareWhitList screenShotShareWhitList;
        List<String> list;
        Uri parse;
        String replace$default;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 9493, new Class[0], Void.TYPE).isSupported && (screenShotShareWhitList = this.b) != null && (list = screenShotShareWhitList.url) != null) {
            ArrayList arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10));
            Iterator<T> it2 = list.iterator();
            while (it2.hasNext() && (r3 = (parse = Uri.parse(it2.next())).getPath()) != null && (replace$default = StringsKt__StringsJVMKt.replace$default(r3, "/router", "", false, 4, (Object) null)) != null) {
                if (Intrinsics.areEqual("/trend/details", replace$default) || Intrinsics.areEqual("/trend/videoPage", replace$default) || Intrinsics.areEqual("/trend/postsPage", replace$default)) {
                    n.f34314a.c().put("TrendDetailsActivity", "https://m.poizon.com/router/trend/details");
                } else {
                    Postcard build = ARouter.getInstance().build(replace$default);
                    try {
                        LogisticsCenter.completion(build);
                        build.getDestination();
                        n.f34314a.c().put(build.getDestination().getSimpleName(), StringsKt__StringsJVMKt.replace$default(parse.toString(), "https://m.poizon.com/", f.a(), false, 4, (Object) null));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                arrayList.add(Unit.INSTANCE);
            }
        }
    }
}