|
|
@ -1480,7 +1480,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
menu.findItem(R.id.menu_translate).setActionView(R.layout.action_button);
|
|
|
|
menu.findItem(R.id.menu_translate).setActionView(R.layout.action_button);
|
|
|
|
ImageButton ibTranslate = (ImageButton)menu.findItem(R.id.menu_translate).getActionView();
|
|
|
|
ImageButton ibTranslate = (ImageButton) menu.findItem(R.id.menu_translate).getActionView();
|
|
|
|
ibTranslate.setImageResource(R.drawable.twotone_translate_24);
|
|
|
|
ibTranslate.setImageResource(R.drawable.twotone_translate_24);
|
|
|
|
ibTranslate.setOnClickListener(new View.OnClickListener() {
|
|
|
|
ibTranslate.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -1490,7 +1490,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
menu.findItem(R.id.menu_zoom).setActionView(R.layout.action_button);
|
|
|
|
menu.findItem(R.id.menu_zoom).setActionView(R.layout.action_button);
|
|
|
|
ImageButton ibZoom = (ImageButton)menu.findItem(R.id.menu_zoom).getActionView();
|
|
|
|
ImageButton ibZoom = (ImageButton) menu.findItem(R.id.menu_zoom).getActionView();
|
|
|
|
ibZoom.setImageResource(R.drawable.twotone_format_size_24);
|
|
|
|
ibZoom.setImageResource(R.drawable.twotone_format_size_24);
|
|
|
|
ibZoom.setOnClickListener(new View.OnClickListener() {
|
|
|
|
ibZoom.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -2524,6 +2524,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
if (cursor != null && cursor.moveToFirst()) {
|
|
|
|
if (cursor != null && cursor.moveToFirst()) {
|
|
|
|
int colEmail = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Email.ADDRESS);
|
|
|
|
int colEmail = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Email.ADDRESS);
|
|
|
|
int colName = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);
|
|
|
|
int colName = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);
|
|
|
|
|
|
|
|
if (colEmail >= 0 && colName >= 0) {
|
|
|
|
String email = MessageHelper.sanitizeEmail(cursor.getString(colEmail));
|
|
|
|
String email = MessageHelper.sanitizeEmail(cursor.getString(colEmail));
|
|
|
|
String name = cursor.getString(colName);
|
|
|
|
String name = cursor.getString(colName);
|
|
|
|
|
|
|
|
|
|
|
@ -2563,6 +2564,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return draft;
|
|
|
|
return draft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|