|
|
@@ -863,19 +863,6 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
|
|
protected void assembleActions() {
|
|
|
mInputMoreActionList.clear();
|
|
|
InputMoreActionUnit actionUnit;
|
|
|
-// if (!mSendPhotoDisable) {
|
|
|
-// actionUnit = new InputMoreActionUnit() {
|
|
|
-// @Override
|
|
|
-// public void onAction(String chatInfoId, int chatType) {
|
|
|
-// startSendPhoto();
|
|
|
-// }
|
|
|
-// };
|
|
|
-// actionUnit.setIconResId(R.drawable.ic_more_picture);
|
|
|
-// actionUnit.setName(getString(R.string.pic));
|
|
|
-// actionUnit.setPriority(1000);
|
|
|
-// mInputMoreActionList.add(actionUnit);
|
|
|
-// }
|
|
|
-
|
|
|
if (!mCaptureDisable) {
|
|
|
actionUnit = new InputMoreActionUnit() {
|
|
|
@Override
|
|
|
@@ -888,43 +875,7 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
|
|
actionUnit.setPriority(900);
|
|
|
mInputMoreActionList.add(actionUnit);
|
|
|
}
|
|
|
-
|
|
|
-// if (!mVideoRecordDisable) {
|
|
|
-// actionUnit = new InputMoreActionUnit() {
|
|
|
-// @Override
|
|
|
-// public void onAction(String chatInfoId, int chatType) {
|
|
|
-// startVideoRecordCheckPermission();
|
|
|
-// }
|
|
|
-// };
|
|
|
-// actionUnit.setIconResId(R.drawable.ic_more_video);
|
|
|
-// actionUnit.setPriority(800);
|
|
|
-// actionUnit.setName(getString(R.string.video));
|
|
|
-// mInputMoreActionList.add(actionUnit);
|
|
|
-// }
|
|
|
-
|
|
|
-// if (!mSendFileDisable) {
|
|
|
-// actionUnit = new InputMoreActionUnit() {
|
|
|
-// @Override
|
|
|
-// public void onAction(String chatInfoId, int chatType) {
|
|
|
-// startSendFile();
|
|
|
-// }
|
|
|
-// };
|
|
|
-// actionUnit.setIconResId(R.drawable.ic_more_file);
|
|
|
-// actionUnit.setName(getString(R.string.file));
|
|
|
-// actionUnit.setPriority(700);
|
|
|
-// mInputMoreActionList.add(actionUnit);
|
|
|
-// }
|
|
|
-
|
|
|
mInputMoreActionList.addAll(mInputMoreCustomActionList);
|
|
|
-
|
|
|
-// List<InputMoreActionUnit> extensionList = getExtensionInputMoreList();
|
|
|
-// mInputMoreActionList.addAll(extensionList);
|
|
|
-// Collections.sort(mInputMoreActionList, new Comparator<InputMoreActionUnit>() {
|
|
|
-// @Override
|
|
|
-// public int compare(InputMoreActionUnit o1, InputMoreActionUnit o2) {
|
|
|
-// return o2.getPriority() - o1.getPriority();
|
|
|
-// }
|
|
|
-// });
|
|
|
}
|
|
|
|
|
|
private String getString(int stringID) {
|