导航菜单

页面标题

页面副标题

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

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

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


package com.showself.ui;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.g;
import androidx.fragment.app.l;
import com.mifeng.ui.R;
import com.showself.ui.fragments.FansFragment;
import com.showself.ui.fragments.FollowFragment;

public class FriendActivity extends c {
    private int c;
    int a = 1;
    private String b = null;
    private View.OnClickListener d = new a();

    class a implements View.OnClickListener {
        a() {
        }

        @Override
        public void onClick(View view) {
            if (view.getId() != 2131296486) {
                return;
            }
            FriendActivity.this.finish();
        }
    }

    private void A(String str) {
        Fragment e2;
        g supportFragmentManager = getSupportFragmentManager();
        l a2 = supportFragmentManager.a();
        if (!TextUtils.isEmpty(this.b) && (e2 = supportFragmentManager.e(this.b)) != null) {
            a2.l(e2);
        }
        this.b = str;
        Fragment e3 = supportFragmentManager.e(str);
        if (e3 != null) {
            a2.g(e3);
        } else if (str.endsWith("follow")) {
            a2.c(R.id.fl_friend_content, FollowFragment.s(this.c), str);
        } else if (str.endsWith("fans")) {
            a2.c(R.id.fl_friend_content, FansFragment.t(this.c), str);
        }
        a2.h();
    }

    private void z(int i2) {
        A(i2 == 1 ? "follow" : i2 == 2 ? "fans" : null);
    }

    @Override
    public void init() {
        TextView textView = (TextView) findViewById(R.id.tv_nav_title);
        int i2 = this.a;
        if (i2 == 1) {
            textView.setText("关注");
        } else if (i2 == 2) {
            textView.setText("粉丝");
        }
        ((Button) findViewById(R.id.btn_nav_left)).setOnClickListener(this.d);
        z(this.a);
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.friend);
        this.c = getIntent().getIntExtra("fuid", 0);
        this.a = getIntent().getIntExtra("tab", 1);
        init();
    }

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