@Override public void onBackPressed() { if (chatActivityEnterView.isPopupShowing()) { chatActivityEnterView.hidePopup(); return; } super.onBackPressed(); }
@Override protected void onPause() { super.onPause(); overridePendingTransition(0, 0); if (chatActivityEnterView != null) { chatActivityEnterView.hidePopup(); chatActivityEnterView.setFieldFocused(false); } ConnectionsManager.getInstance().setAppPaused(true, false); }