Fix multidevice.

Fix authorisation grant not being sent.
This commit is contained in:
Mikunj
2019-10-23 15:29:56 +11:00
parent d58364c9b0
commit 1c1685ae9d
7 changed files with 53 additions and 29 deletions

View File

@@ -2203,7 +2203,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
boolean shouldEnableInput = isFriendsWithAnyLinkedDevices || !hasPendingFriendRequest;
updateToggleButtonState();
inputPanel.setEnabled(shouldEnableInput);
int hintID = shouldEnableInput ? R.string.activity_conversation_pending_friend_request_hint : R.string.activity_conversation_default_hint;
int hintID = shouldEnableInput ? R.string.activity_conversation_default_hint : R.string.activity_conversation_pending_friend_request_hint;
inputPanel.setHint(getResources().getString(hintID));
if (!shouldEnableInput) {
inputPanel.composeText.requestFocus();