导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - LiveStopActivity.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 LiveStopActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.showself.ui;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.g;
import androidx.fragment.app.l;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.mifeng.ui.R;
import com.showself.domain.ShareData;
import com.showself.domain.SharedResultParse;
import com.showself.show.fragment.LiveStopMasterFragment;
import com.showself.utils.r0;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import java.util.HashMap;

public class LiveStopActivity extends c {
    private String a = null;
    public int b;
    public String c;
    public int d;

    class a implements com.r.c.d {
        a() {
        }

        @Override
        public void onRequestFinish(com.r.c.c cVar, Object obj) {
            LiveStopActivity.this.A((HashMap) obj);
        }
    }

    public void A(HashMap<Object, Object> hashMap) {
        ShareData shareData;
        if (hashMap != null) {
            int intValue = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
            if (intValue != 0 || (shareData = (ShareData) hashMap.get("shareData")) == null) {
                return;
            }
            String str = "---shareData---->>" + shareData.isSuccess();
        }
    }

    public void B() {
        int userId = r0.y(this).getUserId();
        long currentTimeMillis = System.currentTimeMillis() / 1000;
        com.r.c.a aVar = new com.r.c.a();
        String k2 = com.r.c.c.k("v2/share/shareResult", 1);
        aVar.b(Oauth2AccessToken.KEY_UID, userId);
        aVar.b("anchorUid", userId);
        aVar.b("type", this.d);
        aVar.b("shareSource", this.b);
        aVar.e(PushConstants.CONTENT, this.c);
        aVar.e("dateline", currentTimeMillis + "");
        new com.r.c.c(k2, aVar, new SharedResultParse(), this).y(new a());
    }

    @Override
    public void init() {
        Fragment e2;
        g supportFragmentManager = getSupportFragmentManager();
        l a2 = supportFragmentManager.a();
        if (!TextUtils.isEmpty(this.a) && (e2 = supportFragmentManager.e(this.a)) != null) {
            a2.l(e2);
        }
        Fragment e3 = supportFragmentManager.e(this.a);
        if (e3 != null) {
            a2.g(e3);
        } else if (this.a.endsWith("master")) {
            a2.b(R.id.fl_stop_content, new LiveStopMasterFragment());
        }
        a2.h();
    }

    @Override
    protected void onActivityResult(int i2, int i3, Intent intent) {
        super.onActivityResult(i2, i3, intent);
        com.showself.ui.h.d.c.d(i2, i3, intent);
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.activity_stop_live);
        Intent intent = getIntent();
        if (intent == null) {
            return;
        }
        if (intent.getExtras().getBoolean("isMaster")) {
            this.a = "master";
            this.d = 2;
        } else {
            this.a = "audience";
            this.d = 5;
        }
        init();
    }

    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        com.showself.ui.h.d.c.e(intent);
    }

    @Override
    public void refresh(Object... objArr) {
    }
}