Messaging: Remove unused code
Change-Id: I8093bb3e305ae323f7069bf42f9e83f8c8647cc7
This commit is contained in:
@@ -90,7 +90,6 @@ public class ComposeMessageView extends LinearLayout
|
||||
void sendMessage(MessageData message);
|
||||
void onComposeEditTextFocused();
|
||||
void onAttachmentsCleared();
|
||||
void onAttachmentsChanged(final boolean haveAttachments);
|
||||
void displayPhoto(Uri photoUri, Rect imageBounds, boolean isDraft);
|
||||
void promptForSelfPhoneNumber();
|
||||
boolean isReadyForAction();
|
||||
@@ -301,10 +300,8 @@ public class ComposeMessageView extends LinearLayout
|
||||
}
|
||||
final boolean haveAttachments = mBinding.getData().hasAttachments();
|
||||
if (simPickerVisible && haveAttachments) {
|
||||
mHost.onAttachmentsChanged(false);
|
||||
mAttachmentPreview.hideAttachmentPreview();
|
||||
} else {
|
||||
mHost.onAttachmentsChanged(haveAttachments);
|
||||
mAttachmentPreview.onAttachmentsChanged(mBinding.getData());
|
||||
}
|
||||
}
|
||||
@@ -474,8 +471,7 @@ public class ComposeMessageView extends LinearLayout
|
||||
|
||||
if ((changeFlags & DraftMessageData.ATTACHMENTS_CHANGED) ==
|
||||
DraftMessageData.ATTACHMENTS_CHANGED) {
|
||||
final boolean haveAttachments = mAttachmentPreview.onAttachmentsChanged(data);
|
||||
mHost.onAttachmentsChanged(haveAttachments);
|
||||
mAttachmentPreview.onAttachmentsChanged(data);
|
||||
hasAttachmentsChanged = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -165,13 +165,6 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
||||
|
||||
private ConversationFragmentHost mHost;
|
||||
|
||||
protected List<Integer> mFilterResults;
|
||||
|
||||
// The minimum scrolling distance between RecyclerView's scroll change event beyong which
|
||||
// a fling motion is considered fast, in which case we'll delay load image attachments for
|
||||
// perf optimization.
|
||||
private int mFastFlingThreshold;
|
||||
|
||||
// ConversationMessageView that is currently selected
|
||||
private ConversationMessageView mSelectedMessage;
|
||||
|
||||
@@ -412,8 +405,6 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
||||
@Override
|
||||
public void onCreate(final Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
mFastFlingThreshold = getResources().getDimensionPixelOffset(
|
||||
R.dimen.conversation_fast_fling_threshold);
|
||||
mAdapter = new ConversationMessageAdapter(getActivity(), null, this,
|
||||
null,
|
||||
// Sets the item click listener on the Recycler item views.
|
||||
@@ -1579,11 +1570,6 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
||||
return -1; // don't override the color
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttachmentsChanged(final boolean haveAttachments) {
|
||||
// no-op for now
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDraftChanged(final DraftMessageData data, final int changeFlags) {
|
||||
mDraftMessageDataModel.ensureBound(data);
|
||||
|
||||
@@ -40,7 +40,6 @@ import com.android.messaging.ui.mediapicker.MediaPicker.MediaPickerListener;
|
||||
import com.android.messaging.util.Assert;
|
||||
import com.android.messaging.util.ImeUtil;
|
||||
import com.android.messaging.util.ImeUtil.ImeStateHost;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -236,26 +235,6 @@ public class ConversationInputManager implements ConversationInput.ConversationI
|
||||
return false;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isMediaPickerVisible() {
|
||||
return mMediaInput.mShowing;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isSimSelectorVisible() {
|
||||
return mSimInput.mShowing;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isImeKeyboardVisible() {
|
||||
return mImeInput.mShowing;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void testNotifyImeStateChanged(final boolean imeOpen) {
|
||||
mImeStateObserver.onImeStateChanged(imeOpen);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns true if the state of the visibility was actually changed
|
||||
*/
|
||||
|
||||
@@ -737,7 +737,7 @@ public class ConversationMessageView extends FrameLayout implements View.OnClick
|
||||
R.dimen.message_metadata_top_padding);
|
||||
|
||||
// Update the message text/info views
|
||||
ImageUtils.setBackgroundDrawableOnView(mMessageTextAndInfoView, textBackground);
|
||||
mMessageTextAndInfoView.setBackground(textBackground);
|
||||
mMessageTextAndInfoView.setMinimumHeight(textMinHeight);
|
||||
final LinearLayout.LayoutParams textAndInfoLayoutParams =
|
||||
(LinearLayout.LayoutParams) mMessageTextAndInfoView.getLayoutParams();
|
||||
|
||||
Reference in New Issue
Block a user