aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-30 23:59:53 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-30 23:59:53 +0200
commitc5d9b50dabbeef2a1e2d72490cc1cbcade8633a4 (patch)
treeaf850816364d2ba98a4910afc40c005206e2764a /src/main/java/de
parent06470010d0d81a765cf0d55eab6ab3e5166d6791 (diff)
remove old resources
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index bf16aa428..bfdd15b03 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -1159,7 +1159,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
menuInflater.inflate(R.menu.fragment_conversation, menu);
final MenuItem menuInviteContact = menu.findItem(R.id.action_invite);
final MenuItem menuNeedHelp = menu.findItem(R.id.action_create_issue);
- final MenuItem menuSearchHistory = menu.findItem(R.id.action_search_history);
final MenuItem menuSearchUpdates = menu.findItem(R.id.action_check_updates);
final MenuItem menuArchiveChat = menu.findItem(R.id.action_archive_chat);
final MenuItem menuEditProfiles = menu.findItem(R.id.action_accounts);
@@ -1174,13 +1173,11 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
}
menuEditProfiles.setVisible(false);
menuNeedHelp.setVisible(true);
- menuSearchHistory.setVisible(true);
menuSearchUpdates.setVisible(false);
ConversationMenuConfigurator.configureAttachmentMenu(conversation, menu);
ConversationMenuConfigurator.configureEncryptionMenu(conversation, menu);
} else {
menuNeedHelp.setVisible(false);
- menuSearchHistory.setVisible(false);
menuSearchUpdates.setVisible(true);
}
super.onCreateOptionsMenu(menu, menuInflater);
@@ -1473,9 +1470,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
BlockContactDialog.show((XmppActivity) activity, conversation);
}
break;
- case R.id.action_search_history:
- showSearchField();
- break;
default:
break;
}
@@ -2630,33 +2624,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
this.binding.messagehint.setVisibility(View.GONE);
}
- protected void showSearchField() {
- this.binding.textsend.setVisibility(View.GONE);
- this.binding.searchfield.setVisibility(View.VISIBLE);
- this.binding.searchfieldInput.addTextChangedListener(mSearchTextWatcher);
- this.binding.searchfieldInput.requestFocus();
- final InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
- if (imm != null) {
- imm.showSoftInput(this.binding.searchfieldInput, InputMethodManager.SHOW_IMPLICIT);
- }
- }
-
- protected void hideSearchField() {
- this.binding.textsend.setVisibility(View.VISIBLE);
- this.binding.searchfield.setVisibility(View.GONE);
- if (activity != null) {
- final InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
- if (imm != null) {
- imm.hideSoftInputFromWindow(this.binding.searchfieldInput.getWindowToken(), InputMethodManager.HIDE_IMPLICIT_ONLY);
- }
- }
- this.binding.searchfieldInput.setText("");
- }
-
- protected boolean isSearchFieldVisible() {
- return this.binding.searchfield.getVisibility() == View.VISIBLE;
- }
-
protected void sendMessage(Message message) {
activity.xmppConnectionService.sendMessage(message);
messageSent();