Compare commits
68 commits
8b3e121e94
...
210d1c9ac0
Author | SHA1 | Date | |
---|---|---|---|
Sergei Poljanski | 210d1c9ac0 | ||
kosyak | 44acdbd2cb | ||
kosyak | 414b0c7978 | ||
Sergei Poljanski | 82d21d51bb | ||
Sergei Poljanski | add880e928 | ||
Sergei Poljanski | a8fa7e5350 | ||
Sergei Poljanski | 9e4780dc06 | ||
kosyak | 64a8154560 | ||
kosyak | f511be6e63 | ||
kosyak | 201877e6bf | ||
kosyak | 27d4e8b617 | ||
Sergei Poljanski | 68df9a1d6e | ||
Sergei Poljanski | 461fdf28f6 | ||
Sergei Poljanski | 7771bd19c0 | ||
Pavel R. | 63d6a56e60 | ||
Pavel R. | 25c5f663b0 | ||
Bohdan Horbeshko | 57da0ab5d4 | ||
Sergei Poljanski | 093751b0c1 | ||
Bohdan Horbeshko | 8ce99bb00d | ||
Sergei Poljanski | cb85e2c32e | ||
Sergei Poljanski | e3c64d2534 | ||
Sergei Poljanski | 3e33800d0e | ||
Sergei Poljanski | 527494f33a | ||
Sergei Poljanski | 1bae950d60 | ||
Bohdan Horbeshko | f049d5409f | ||
Sergei Poljanski | b15b00009f | ||
kosyak | d8a7051c5d | ||
kosyak | ab56d030fb | ||
kosyak | 32340ac484 | ||
Bohdan Horbeshko | 52e4be556b | ||
kosyak | 4990ac0a23 | ||
kosyak | 8772c9fd73 | ||
kosyak | e1e2de8a76 | ||
kosyak | 948fd85a43 | ||
kosyak | bf43f5ddfd | ||
kosyak | 82134599ef | ||
kosyak | e72b866fce | ||
kosyak | b18f042b8b | ||
kosyak | a66fa08be4 | ||
kosyak | 07c730098e | ||
kosyak | 0a99844a71 | ||
kosyak | c4bda2baf1 | ||
kosyak | 88ad3f6940 | ||
kosyak | 1a33af7c15 | ||
kosyak | 5920533cf5 | ||
kosyak | 701c21ae4a | ||
kosyak | 28c633deb8 | ||
kosyak | a1cc201ae7 | ||
kosyak | d6f162fc65 | ||
kosyak | 635e5675d1 | ||
kosyak | 9529831f80 | ||
kosyak | d970679064 | ||
kosyak | cf9ca3cc46 | ||
kosyak | d88d858069 | ||
kosyak | 4431eccc98 | ||
kosyak | 973a48ef62 | ||
kosyak | 389074e802 | ||
kosyak | 1a751b8a80 | ||
kosyak | c32809b963 | ||
kosyak | c64e0925f4 | ||
Sergei Poljanski | 03fcd01ddb | ||
Sergei Poljanski | cf9d0e13b1 | ||
kosyak | 95ee8459b8 | ||
kosyak | 021552b1d4 | ||
kosyak | e3542ccf72 | ||
kosyak | ffbdad7503 | ||
kosyak | 00817b79be | ||
kosyak | 4dab5156e1 |
|
@ -1388,7 +1388,7 @@ public class ConversationFragment extends XmppFragment
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setHasOptionsMenu(true);
|
||||
if (savedInstanceState == null) {
|
||||
if (savedInstanceState == null && conversation != null) {
|
||||
conversation.jumpToLatest();
|
||||
}
|
||||
}
|
||||
|
@ -3233,10 +3233,19 @@ public class ConversationFragment extends XmppFragment
|
|||
.setOpenConversation(this.conversation);
|
||||
|
||||
if (commandAdapter != null && conversation != originalConversation) {
|
||||
View currentFocus = null;
|
||||
if (activity != null) {
|
||||
currentFocus = activity.getCurrentFocus();
|
||||
}
|
||||
conversation.setupViewPager(binding.conversationViewPager, binding.tabLayout, originalConversation);
|
||||
refreshCommands();
|
||||
maybeRestoreMessageInputFocus(currentFocus);
|
||||
}
|
||||
if (commandAdapter == null && conversation != null) {
|
||||
View currentFocus = null;
|
||||
if (activity != null) {
|
||||
currentFocus = activity.getCurrentFocus();
|
||||
}
|
||||
conversation.setupViewPager(binding.conversationViewPager, binding.tabLayout, null);
|
||||
commandAdapter = new CommandAdapter((XmppActivity) getActivity());
|
||||
binding.commandsView.setAdapter(commandAdapter);
|
||||
|
@ -3247,6 +3256,7 @@ public class ConversationFragment extends XmppFragment
|
|||
activity.startCommand(conversation.getAccount(), command.getAttributeAsJid("jid"), command.getAttribute("node"));
|
||||
});
|
||||
refreshCommands();
|
||||
maybeRestoreMessageInputFocus(currentFocus);
|
||||
}
|
||||
|
||||
previousClickedReply = null;
|
||||
|
@ -3291,6 +3301,12 @@ public class ConversationFragment extends XmppFragment
|
|||
}
|
||||
}
|
||||
|
||||
private void maybeRestoreMessageInputFocus(View currentFocus) {
|
||||
if (currentFocus == this.binding.textinput) {
|
||||
this.binding.textinput.requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
private void resetUnreadMessagesCount() {
|
||||
lastMessageUuid = null;
|
||||
hideUnreadMessagesCount();
|
||||
|
|
Loading…
Reference in a new issue