@Override protected void onCreate(Bundle savedInstanceState) { LogUtil.d(TAG, "onCreate"); super.onCreate(null); getWindow().setFormat(PixelFormat.TRANSPARENT); String recipients = getIntent().getStringExtra(ChattingFragment.RECIPIENTS); if (recipients == null) { finish(); LogUtil.e(TAG, "recipients is null !!"); return; } setContentView(R.layout.chattingui_activity_container); mChattingFragment = new ChattingFragment(); Bundle bundle = getIntent().getExtras(); bundle.putBoolean(ChattingFragment.FROM_CHATTING_ACTIVITY, true); mChattingFragment.setArguments(bundle); getSupportFragmentManager() .beginTransaction() .add(R.id.ccp_root_view, mChattingFragment) .commit(); onActivityCreate(); if (isChatToSelf(recipients) || isPeerChat(recipients)) { AppPanelControl.setShowVoipCall(false); } }
@Override protected void onResume() { super.onResume(); CrashHandler.getInstance().setContext(this); }