|
@ -35,6 +35,7 @@ import com.electric.chargingpile.R;
|
35
|
35
|
import com.electric.chargingpile.application.MainApplication;
|
36
|
36
|
import com.electric.chargingpile.data.AuthSignBean;
|
37
|
37
|
import com.electric.chargingpile.data.TalkRecommendBean;
|
|
38
|
import com.electric.chargingpile.manager.ProfileManager;
|
38
|
39
|
import com.electric.chargingpile.util.BarColorUtil;
|
39
|
40
|
import com.electric.chargingpile.util.JsonUtils;
|
40
|
41
|
import com.electric.chargingpile.util.LoadingDialog;
|
|
@ -214,6 +215,9 @@ public class PublishTopicActivity extends Activity implements OnClickListener {
|
214
|
215
|
map.put("fileNames", fileNames);
|
215
|
216
|
Log.e("fileNameDir fileName", fileNames);
|
216
|
217
|
map.put("targetType", "23");//23视频/24图片
|
|
218
|
String token = ProfileManager.getInstance().getKeyMessageToken(getApplicationContext());
|
|
219
|
map.put("appToken", token+"");
|
|
220
|
map.put("userId", MainApplication.userId);
|
217
|
221
|
OkHttpUtils
|
218
|
222
|
.post()
|
219
|
223
|
.params(map)
|
|
@ -358,7 +362,7 @@ public class PublishTopicActivity extends Activity implements OnClickListener {
|
358
|
362
|
|
359
|
363
|
Glide
|
360
|
364
|
.with(this)
|
361
|
|
.load(Uri.fromFile(new File(media.getCompressPath())))
|
|
365
|
.load(Uri.fromFile(new File(media.getPath())))
|
362
|
366
|
.apply(new RequestOptions().centerCrop())
|
363
|
367
|
.into(mItemVideo);
|
364
|
368
|
mItemVideoLl.setVisibility(View.VISIBLE);
|