导航菜单

页面标题

页面副标题

Hyouka private v5.8.9 - GroupMembersActivity.java 源代码

正在查看: Hyouka private v5.8.9 应用的 GroupMembersActivity.java JAVA 源代码文件

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


package com.beint.project.screens;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import com.beint.project.screens.sms.AppModeNotifierActivity;
import com.beint.project.screens.sms.groupchat.GroupChatContactsInfoScreen;
import com.beint.project.screens.sms.groupchat.GroupInfoFragmentView;
import java.lang.ref.WeakReference;

public class GroupMembersActivity extends AppModeNotifierActivity {
    private GroupInfoFragmentView groupInfoFragmentView = null;

    public boolean back() {
        if (getSupportFragmentManager().o0() >= 1) {
            getSupportFragmentManager().Z0();
        }
        return getSupportFragmentManager().o0() == 0;
    }

    public void onAttachFragment(Fragment fragment) {
        super/*androidx.fragment.app.FragmentActivity*/.onAttachFragment(fragment);
        if (fragment instanceof GroupInfoFragmentView) {
            getWindow().getDecorView().setSystemUiVisibility(1024);
        }
    }

    public void onBackPressed() {
        if (this.groupInfoFragmentView == null || getSupportFragmentManager().o0() != 0) {
            super.onBackPressed();
        } else {
            this.groupInfoFragmentView.closeFragmentWithAnimator();
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        overridePendingTransition(0, 0);
        setContentView(2131558444);
        Toolbar findViewById = findViewById(2131363848);
        findViewById.setTitle(2131886726);
        setSupportActionBar(findViewById);
        getSupportActionBar().v(false);
        getSupportActionBar().q(true);
        getSupportActionBar().r(true);
        if (getIntent() != null && getIntent().getStringExtra("ABC") != null) {
            if (getIntent().getStringExtra("ABC").equalsIgnoreCase("FROM_HOME_ACTIVITY")) {
                getSupportFragmentManager().n().b(2131362950, new GroupChatContactsInfoScreen()).j();
                getSupportFragmentManager().f0();
            } else {
                this.groupInfoFragmentView = new GroupInfoFragmentView();
                getSupportActionBar().g();
                findViewById.setVisibility(8);
                getSupportFragmentManager().n().b(2131362950, this.groupInfoFragmentView).j();
                getSupportFragmentManager().f0();
            }
        }
        ConversationManager conversationManager = ConversationManager.INSTANCE;
        if (conversationManager.getActivity() != null) {
            conversationManager.setGroupMembersActivity(new WeakReference<>(this));
        }
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        return true;
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() == 16908332) {
            back();
        }
        return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
    }

    @Override
    protected void onPause() {
        super.onPause();
        overridePendingTransition(0, 0);
    }

    public boolean processKeyDown(int i, KeyEvent keyEvent) {
        return i == 4 ? !back() : i == 4;
    }
}