|
@@ -164,7 +164,9 @@ public class NewTweetingActivity extends SheishuoUI {
|
|
|
if (!result.getBoolean("from_local")) {
|
|
|
//照相机
|
|
|
String filePath = result.getString("file_path");
|
|
|
+ //移除添加图片按钮
|
|
|
imgsLayout.removeAllViews();
|
|
|
+
|
|
|
ImageView imageView = new ImageView(this);
|
|
|
imageView.setAdjustViewBounds(true);
|
|
|
int toDp = (int) ImgUtil.convertDpToPixel(128, context);
|
|
@@ -173,10 +175,14 @@ public class NewTweetingActivity extends SheishuoUI {
|
|
|
.centerCrop()
|
|
|
.bitmapTransform(new ColorFilterTransformation(context, 0x7900CCCC))
|
|
|
.into(imageView);
|
|
|
+ selectedPhotoPathList.add(filePath);
|
|
|
presenter.uploadPhoto(filePath);
|
|
|
} else {
|
|
|
//相册
|
|
|
+
|
|
|
+ //移除添加图片按钮
|
|
|
imgsLayout.removeAllViews();
|
|
|
+
|
|
|
List<PhotoInfo> photoInfoList = (List<PhotoInfo>) result.getSerializable("photo_list");
|
|
|
for (PhotoInfo info : photoInfoList) {
|
|
|
ImageView imageView = new ImageView(this);
|
|
@@ -200,7 +206,6 @@ public class NewTweetingActivity extends SheishuoUI {
|
|
|
@Override
|
|
|
protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
-// activity.onActivityResult(0,CircleOfFriendsFragment.REFRESH_CIRCLE,null);
|
|
|
}
|
|
|
|
|
|
/**
|