diff --git a/res/drawable-hdpi/chat_fast_address_background.png b/res/drawable-hdpi/chat_fast_address_background.png
new file mode 100644
index 000000000..5825587e7
Binary files /dev/null and b/res/drawable-hdpi/chat_fast_address_background.png differ
diff --git a/res/layout/chatlist.xml b/res/layout/chatlist.xml
index bc0f8bfb0..e104e5ec3 100644
--- a/res/layout/chatlist.xml
+++ b/res/layout/chatlist.xml
@@ -55,13 +55,35 @@
-
+ android:layout_height="wrap_content">
+
+
+
+
+
+
mConversations, mDrafts;
private ListView chatList;
private TextView edit, ok, newDiscussion;
+ private ImageView clearFastChat;
private EditText fastNewChat;
private boolean isEditMode = false;
@@ -63,12 +64,18 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
edit = (TextView) view.findViewById(R.id.edit);
edit.setOnClickListener(this);
+
newDiscussion = (TextView) view.findViewById(R.id.newDiscussion);
newDiscussion.setOnClickListener(this);
+
ok = (TextView) view.findViewById(R.id.ok);
ok.setOnClickListener(this);
+ clearFastChat = (ImageView) view.findViewById(R.id.clearFastChatField);
+ clearFastChat.setOnClickListener(this);
+
fastNewChat = (EditText) view.findViewById(R.id.newFastChat);
+
return view;
}
@@ -112,7 +119,10 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
public void onClick(View v) {
int id = v.getId();
- if (id == R.id.ok) {
+ if (id == R.id.clearFastChatField) {
+ fastNewChat.setText("");
+ }
+ else if (id == R.id.ok) {
edit.setVisibility(View.VISIBLE);
ok.setVisibility(View.GONE);
isEditMode = false;