mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Merge pull request #1607 from nextcloud/bugfix/noid/shared-text-is-not-cleared
Clear message field after sharing
This commit is contained in:
commit
3e9c16f833
@ -199,14 +199,13 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
private Bundle conversationMenuBundle = null;
|
private Bundle conversationMenuBundle = null;
|
||||||
|
|
||||||
private boolean showShareToScreen = false;
|
private boolean showShareToScreen = false;
|
||||||
private boolean shareToScreenWasShown = false;
|
|
||||||
|
|
||||||
private ArrayList<String> filesToShare;
|
private ArrayList<String> filesToShare;
|
||||||
private Conversation selectedConversation;
|
private Conversation selectedConversation;
|
||||||
|
|
||||||
private String textToPaste = "";
|
private String textToPaste = "";
|
||||||
|
|
||||||
private boolean forwardMessage = false;
|
private boolean forwardMessage;
|
||||||
|
|
||||||
private SmoothScrollLinearLayoutManager layoutManager;
|
private SmoothScrollLinearLayoutManager layoutManager;
|
||||||
|
|
||||||
@ -347,7 +346,7 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
|
|
||||||
searchView = (SearchView) MenuItemCompat.getActionView(searchItem);
|
searchView = (SearchView) MenuItemCompat.getActionView(searchItem);
|
||||||
|
|
||||||
showShareToScreen = !shareToScreenWasShown && hasActivityActionSendIntent();
|
showShareToScreen = !showShareToScreen && hasActivityActionSendIntent();
|
||||||
|
|
||||||
|
|
||||||
if (showShareToScreen) {
|
if (showShareToScreen) {
|
||||||
@ -786,10 +785,11 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
selectedConversation = getConversation(position);
|
selectedConversation = getConversation(position);
|
||||||
if (selectedConversation != null && getActivity() != null) {
|
if (selectedConversation != null && getActivity() != null) {
|
||||||
if (showShareToScreen) {
|
if (showShareToScreen) {
|
||||||
shareToScreenWasShown = true;
|
|
||||||
handleSharedData();
|
handleSharedData();
|
||||||
|
showShareToScreen = false;
|
||||||
} else if (forwardMessage) {
|
} else if (forwardMessage) {
|
||||||
openConversation(bundle.getString(BundleKeys.INSTANCE.getKEY_FORWARD_MSG_TEXT()));
|
openConversation(bundle.getString(BundleKeys.INSTANCE.getKEY_FORWARD_MSG_TEXT()));
|
||||||
|
forwardMessage = false;
|
||||||
} else {
|
} else {
|
||||||
openConversation();
|
openConversation();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user