private void setupFrom(String from, String fullFrom) { if (from != null) { if (remoteFrom != from) { remoteFrom = from; fromText.setText(remoteFrom); CallerInfo callerInfo = CallerInfo.getCallerInfoFromSipUri(getActivity(), fullFrom); if (callerInfo != null && callerInfo.contactExists) { fullFromText.setText(callerInfo.name); } else { fullFromText.setText(SipUri.getDisplayedSimpleContact(fullFrom)); } loadMessageContent(); notifications.setViewingMessageFrom(remoteFrom); } } }
@Override public void onPause() { super.onPause(); notifications.setViewingMessageFrom(null); }
@Override public void onResume() { Log.d(THIS_FILE, "Resume compose message act"); super.onResume(); notifications.setViewingMessageFrom(remoteFrom); }