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