Fix bug with draft
This commit is contained in:
parent
d656403d4a
commit
9aefffa3de
1 changed files with 5 additions and 7 deletions
|
@ -558,7 +558,7 @@ public class ChatActivity extends FragmentActivity implements OnClickListener, S
|
||||||
lc.removeListener(mListener);
|
lc.removeListener(mListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
getIntent().putExtra("MessageDraft", message.getText());
|
getIntent().putExtra("messageDraft", message.getText().toString());
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -569,12 +569,8 @@ public class ChatActivity extends FragmentActivity implements OnClickListener, S
|
||||||
message.addTextChangedListener(textWatcher);
|
message.addTextChangedListener(textWatcher);
|
||||||
addVirtualKeyboardVisiblityListener();
|
addVirtualKeyboardVisiblityListener();
|
||||||
|
|
||||||
super.onResume();
|
|
||||||
|
|
||||||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (lc != null) {
|
if (lc != null) {
|
||||||
lc.addListener(mListener);
|
lc.addListener(mListener);
|
||||||
}
|
}
|
||||||
|
@ -586,12 +582,14 @@ public class ChatActivity extends FragmentActivity implements OnClickListener, S
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String draft = getIntent().getStringExtra("messageDraft");
|
String draft = getIntent().getExtras().getString("messageDraft");
|
||||||
message.setText(draft);
|
message.setText(draft);
|
||||||
|
|
||||||
remoteComposing.setVisibility(chatRoom.isRemoteComposing() ? View.VISIBLE : View.GONE);
|
remoteComposing.setVisibility(chatRoom.isRemoteComposing() ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
displayMessages();
|
displayMessages();
|
||||||
|
|
||||||
|
super.onResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue