|
|
@ -1600,6 +1600,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
menu.findItem(R.id.menu_compact).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_compact).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_contact_group).setEnabled(
|
|
|
|
menu.findItem(R.id.menu_contact_group).setEnabled(
|
|
|
|
state == State.LOADED && hasPermission(Manifest.permission.READ_CONTACTS));
|
|
|
|
state == State.LOADED && hasPermission(Manifest.permission.READ_CONTACTS));
|
|
|
|
|
|
|
|
menu.findItem(R.id.menu_manage_local_contacts).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_answer_insert).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_answer_insert).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_answer_create).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_answer_create).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_clear).setEnabled(state == State.LOADED);
|
|
|
|
menu.findItem(R.id.menu_clear).setEnabled(state == State.LOADED);
|
|
|
@ -1697,6 +1698,9 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
} else if (itemId == R.id.menu_contact_group) {
|
|
|
|
} else if (itemId == R.id.menu_contact_group) {
|
|
|
|
onMenuContactGroup();
|
|
|
|
onMenuContactGroup();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else if (itemId == R.id.menu_manage_local_contacts) {
|
|
|
|
|
|
|
|
onMenuManageLocalContacts();
|
|
|
|
|
|
|
|
return true;
|
|
|
|
} else if (itemId == R.id.menu_answer_insert) {
|
|
|
|
} else if (itemId == R.id.menu_answer_insert) {
|
|
|
|
onMenuAnswerInsert();
|
|
|
|
onMenuAnswerInsert();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -1868,6 +1872,12 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
onMenuContactGroup(view.findFocus());
|
|
|
|
onMenuContactGroup(view.findFocus());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuManageLocalContacts() {
|
|
|
|
|
|
|
|
FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
|
|
|
|
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, new FragmentContacts()).addToBackStack("contacts");
|
|
|
|
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuContactGroup(View v) {
|
|
|
|
private void onMenuContactGroup(View v) {
|
|
|
|
int focussed = 0;
|
|
|
|
int focussed = 0;
|
|
|
|
if (v != null) {
|
|
|
|
if (v != null) {
|
|
|
|