正在查看: Hyouka private v5.8.9 应用的 GroupAddMemberActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 GroupAddMemberActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens.sms.groupchat;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import androidx.appcompat.widget.Toolbar;
import com.beint.project.core.managers.RoomManager;
import com.beint.project.core.model.sms.Conversation;
import com.beint.project.screens.ConversationManager;
import com.beint.project.screens.contacts.ScreenTabContacts;
import com.beint.project.screens.sms.AppModeNotifierActivity;
import com.beint.project.utils.color.ColorsManger;
import com.google.android.material.appbar.AppBarLayout;
public class GroupAddMemberActivity extends AppModeNotifierActivity {
private AppBarLayout appBarLayout;
private Conversation conversation;
private GroupEditFragment groupEditFragment;
private LinearLayout linearLayout;
private Toolbar toolbar;
private boolean isgroupEditFragment = false;
private CreateEnumTypes createEnumTypes = CreateEnumTypes.ADD_MEMBERS;
public enum CreateEnumTypes {
ADD_MEMBERS,
GROUP_EDIT
}
private View getView() {
this.linearLayout = new LinearLayout(this);
this.linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
this.linearLayout.setBackgroundColor(getResources().getColor(ColorsManger.background_color));
this.linearLayout.setOrientation(1);
createAppBarLayout();
FrameLayout frameLayout = new FrameLayout(this);
frameLayout.setId(2131361984);
this.linearLayout.addView(frameLayout);
return this.linearLayout;
}
void createAppBarLayout() {
this.appBarLayout = new AppBarLayout(this);
setTheme(2131951632);
this.appBarLayout.setBackgroundColor(getResources().getColor(ColorsManger.app_main_color));
createToolbar();
getSupportActionBar().v(false);
getSupportActionBar().q(true);
getSupportActionBar().r(true);
this.linearLayout.addView(this.appBarLayout);
}
void createToolbar() {
Toolbar toolbar = new Toolbar(this);
this.toolbar = toolbar;
toolbar.setPopupTheme(2131951638);
this.toolbar.setSubtitleTextAppearance(this, 2131952409);
this.toolbar.setTitleTextAppearance(this, 2131952410);
this.appBarLayout.addView(this.toolbar);
setSupportActionBar(this.toolbar);
}
public void onBackPressed() {
GroupEditFragment groupEditFragment;
if (this.isgroupEditFragment && (groupEditFragment = this.groupEditFragment) != null) {
groupEditFragment.removeModel();
}
super.onBackPressed();
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(getView());
if (getIntent() != null) {
this.conversation = RoomManager.INSTANCE.getConversation();
this.createEnumTypes = (CreateEnumTypes) getIntent().getSerializableExtra("Key");
}
if (this.createEnumTypes != CreateEnumTypes.ADD_MEMBERS) {
this.isgroupEditFragment = true;
GroupEditFragment groupEditFragment = new GroupEditFragment();
this.groupEditFragment = groupEditFragment;
groupEditFragment.setConversation(this.conversation);
getSupportFragmentManager().n().q(2131361984, this.groupEditFragment).i();
getSupportActionBar().x(getResources().getString(2131886908));
return;
}
this.isgroupEditFragment = false;
ScreenTabContacts screenTabContacts = new ScreenTabContacts();
screenTabContacts.setForWhichScreen(ScreenTabContacts.ForWhichScreen.GROUP_INFO, this.conversation);
ConversationManager conversationManager = ConversationManager.INSTANCE;
screenTabContacts.setActualContactList(conversationManager.getActualList());
conversationManager.setActualList(null);
getSupportFragmentManager().n().q(2131361984, screenTabContacts).i();
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() == 16908332) {
onBackPressed();
}
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
}