@Override
 public final CharSequence convertToString(Cursor cursor) {
   CharSequence number = ContactsWrapper.getInstance().transformToSipUri(mContext, cursor);
   if (!TextUtils.isEmpty(number)) {
     return Filter.rewritePhoneNumber(mContext, currentAccId, number.toString());
   }
   return number;
 }
Esempio n. 2
0
 @Override
 public void onItemClick(AdapterView<?> ad, View view, int position, long arg3) {
   String number = (String) view.getTag();
   SipProfile account = accountChooserButtonText.getSelectedAccount();
   String rewritten = Filter.rewritePhoneNumber(getContext(), account.id, number);
   setTextValue(rewritten);
   Log.d(THIS_FILE, "Clicked contact " + number);
 }