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


package com.tencent.mm.live.ui;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import androidx.appcompat.app.AppCompatActivity;
import com.tencent.mm.R;
import com.tencent.mm.live.api.LiveConfig;
import com.tencent.mm.live.view.LiveVisitorPluginLayout;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.ui.base.preference.MMPreference;
import com.tencent.mm.ui.base.preference.Preference;
import i14.a;
import java.util.ArrayList;
import k14.g;
import kotlin.Metadata;
import p64.n;

@a(3)
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/tencent/mm/live/ui/LiveUIF;", "Lcom/tencent/mm/ui/base/preference/MMPreference;", "<init>", "()V", "plugin-logic_release"}, k = 1, mv = {1, 7, 1})
public final class LiveUIF extends MMPreference {

    /* renamed from: e  reason: collision with root package name */
    public static final /* synthetic */ int f76146e = 0;

    @Override // com.tencent.mm.ui.base.preference.MMPreference
    public int getResourceId() {
        return R.xml.f370571az;
    }

    @Override // com.tencent.mm.ui.base.preference.MMPreference
    public boolean onPreferenceTreeClick(g gVar, Preference preference) {
        String str;
        String str2;
        if (preference != null) {
            str = preference.f177766r;
        } else {
            str = null;
        }
        if (str != null) {
            switch (str.hashCode()) {
                case -229370935:
                    if (str.equals("source_camera")) {
                        Intent intent = new Intent(this, LiveUIA.class);
                        intent.putExtra("KEY_PARAMS_CONFIG", (LiveConfig) getIntent().getParcelableExtra("KEY_PARAMS_CONFIG"));
                        intent.addFlags(268435456);
                        k30.a aVar = new k30.a();
                        aVar.c(intent);
                        j30.a.d(this, aVar.b(), "com/tencent/mm/live/ui/LiveUIF", "onPreferenceTreeClick", "(Lcom/tencent/mm/ui/base/preference/IPreferenceScreen;Lcom/tencent/mm/ui/base/preference/Preference;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                        startActivity((Intent) aVar.a(0));
                        j30.a.e(this, "com/tencent/mm/live/ui/LiveUIF", "onPreferenceTreeClick", "(Lcom/tencent/mm/ui/base/preference/IPreferenceScreen;Lcom/tencent/mm/ui/base/preference/Preference;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                        return true;
                    }
                    break;
                case 230691088:
                    str2 = "source_screen";
                    str.equals(str2);
                    break;
                case 965244314:
                    if (str.equals("mlvb_live_room")) {
                        Log.i("MicroMsg.LiveEntranceUI", "");
                        AppCompatActivity context = getContext();
                        LayoutInflater.from(context);
                        new n((Context) context, 1, false);
                        new ArrayList();
                        new ArrayList();
                        return true;
                    }
                    break;
                case 1008515414:
                    str2 = "live_demo";
                    str.equals(str2);
                    break;
                case 1009055256:
                    if (str.equals("live_view")) {
                        LiveConfig.b bVar = new LiveConfig.b();
                        bVar.f75965a = 1;
                        bVar.f75969e = "";
                        bVar.f75966b = "19709589717@chatroom";
                        bVar.f75967c = 0;
                        bVar.f75968d = "";
                        bVar.f75970f = "";
                        LiveConfig a15 = bVar.a();
                        a15.f75949h.put(0, LiveVisitorPluginLayout.class.getName());
                        Intent intent2 = new Intent(this, LiveUIA.class);
                        intent2.putExtra("KEY_PARAMS_CONFIG", a15);
                        intent2.addFlags(268435456);
                        k30.a aVar2 = new k30.a();
                        aVar2.c(intent2);
                        j30.a.d(this, aVar2.b(), "com/tencent/mm/live/ui/LiveUIF", "onPreferenceTreeClick", "(Lcom/tencent/mm/ui/base/preference/IPreferenceScreen;Lcom/tencent/mm/ui/base/preference/Preference;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                        startActivity((Intent) aVar2.a(0));
                        j30.a.e(this, "com/tencent/mm/live/ui/LiveUIF", "onPreferenceTreeClick", "(Lcom/tencent/mm/ui/base/preference/IPreferenceScreen;Lcom/tencent/mm/ui/base/preference/Preference;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                        return true;
                    }
                    break;
            }
        }
        return false;
    }
}