Example #1
0
 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);
     }
   }
 }
Example #2
0
 @Override
 public void onPause() {
   super.onPause();
   notifications.setViewingMessageFrom(null);
 }
Example #3
0
 @Override
 public void onResume() {
   Log.d(THIS_FILE, "Resume compose message act");
   super.onResume();
   notifications.setViewingMessageFrom(remoteFrom);
 }