Bit of cleanup in chat

This commit is contained in:
Sylvain Berfini 2017-10-23 16:57:50 +02:00
parent 27671e25cd
commit 35216242fb
2 changed files with 18 additions and 20 deletions

View file

@ -67,24 +67,24 @@ public class ChatBubbleViewHolder implements ChatMessageListener {
eventTime = view.findViewById(R.id.event_date); eventTime = view.findViewById(R.id.event_date);
eventMessage = view.findViewById(R.id.event_text); eventMessage = view.findViewById(R.id.event_text);
bubbleLayout = (RelativeLayout) view.findViewById(R.id.bubble); bubbleLayout = view.findViewById(R.id.bubble);
delete = (CheckBox) view.findViewById(R.id.delete_message); delete = view.findViewById(R.id.delete_message);
background = (LinearLayout) view.findViewById(R.id.background); background = view.findViewById(R.id.background);
contactPicture = (ImageView) view.findViewById(R.id.contact_picture); contactPicture = view.findViewById(R.id.contact_picture);
contactName = (TextView) view.findViewById(R.id.contact_header); contactName = view.findViewById(R.id.contact_header);
messageText = (TextView) view.findViewById(R.id.message); messageText = view.findViewById(R.id.message);
messageImage = (ImageView) view.findViewById(R.id.image); messageImage = view.findViewById(R.id.image);
fileTransferLayout = (RelativeLayout) view.findViewById(R.id.file_transfer_layout); fileTransferLayout = view.findViewById(R.id.file_transfer_layout);
fileTransferProgressBar = (ProgressBar) view.findViewById(R.id.progress_bar); fileTransferProgressBar = view.findViewById(R.id.progress_bar);
fileTransferAction = (Button) view.findViewById(R.id.file_transfer_action); fileTransferAction = view.findViewById(R.id.file_transfer_action);
messageStatus = (ImageView) view.findViewById(R.id.status); messageStatus = view.findViewById(R.id.status);
messageSendingInProgress = (ProgressBar) view.findViewById(R.id.inprogress); messageSendingInProgress = view.findViewById(R.id.inprogress);
contactPictureMask = (ImageView) view.findViewById(R.id.mask); contactPictureMask = view.findViewById(R.id.mask);
imdmLayout = (LinearLayout) view.findViewById(R.id.imdmLayout); imdmLayout = view.findViewById(R.id.imdmLayout);
imdmIcon = (ImageView) view.findViewById(R.id.imdmIcon); imdmIcon = view.findViewById(R.id.imdmIcon);
imdmLabel = (TextView) view.findViewById(R.id.imdmText); imdmLabel = view.findViewById(R.id.imdmText);
fileExtensionLabel = (TextView) view.findViewById(R.id.file_extension); fileExtensionLabel = view.findViewById(R.id.file_extension);
fileNameLabel = (TextView) view.findViewById(R.id.file_name); fileNameLabel = view.findViewById(R.id.file_name);
} }
@Override @Override

View file

@ -20,8 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
package org.linphone.chat; package org.linphone.chat;
import android.app.Fragment; import android.app.Fragment;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle; import android.os.Bundle;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;