Add permission asking in chat creation
This commit is contained in:
parent
a085e6424e
commit
c026ae9c0c
2 changed files with 5 additions and 2 deletions
|
@ -203,12 +203,12 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
||||||
mShareInfos.putString("messageDraft", messageDraft);
|
mShareInfos.putString("messageDraft", messageDraft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
|
ContactsManager.addContactsListener(this);
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(INPUT_METHOD_SERVICE);
|
InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(INPUT_METHOD_SERVICE);
|
||||||
|
@ -222,6 +222,7 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
||||||
if (mChatRoom != null) {
|
if (mChatRoom != null) {
|
||||||
mChatRoom.removeListener(mChatRoomCreationListener);
|
mChatRoom.removeListener(mChatRoomCreationListener);
|
||||||
}
|
}
|
||||||
|
ContactsManager.removeContactsListener(this);
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,6 +426,7 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onContactsUpdated() {
|
public void onContactsUpdated() {
|
||||||
mSearchAdapter.searchContacts(mSearchField.getText().toString(), mContactsList);
|
ContactsManager.getInstance().fetchContactsAsync();
|
||||||
|
updateList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,6 +208,7 @@ public class ChatListFragment extends Fragment implements ContactsUpdatedListene
|
||||||
if (mChatRoomDeletionPendingCount > 0) {
|
if (mChatRoomDeletionPendingCount > 0) {
|
||||||
mWaitLayout.setVisibility(View.VISIBLE);
|
mWaitLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
LinphoneActivity.instance().refreshMissedChatCountDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue