|
@@ -168,10 +168,14 @@ public class InvitationActivity extends AppCompatActivity implements ScalableCar
|
|
|
switch (position){
|
|
switch (position){
|
|
|
case 1://qq
|
|
case 1://qq
|
|
|
case 2://wx
|
|
case 2://wx
|
|
|
- String fileName = String.format(Locale.CHINA, "share%d.jpg", position);
|
|
|
|
|
- file = new File(ClassFileHelper.DIR, fileName);
|
|
|
|
|
- if(!file.exists())
|
|
|
|
|
- file = ViewUtil.saveImage(mRecyclerView.getChildAt(curPosition).findViewById(R.id.layout_view), ClassFileHelper.DIR, fileName);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ String fileName = String.format(Locale.CHINA, "share%d%s%d.jpg", position, BuildConfig.FLAVOR, mPictureList.get(position).getLink().hashCode());
|
|
|
|
|
+ file = new File(ClassFileHelper.DIR, fileName);
|
|
|
|
|
+ if(!file.exists())
|
|
|
|
|
+ file = ViewUtil.saveImage(mRecyclerView.getChildAt(curPosition).findViewById(R.id.layout_view), ClassFileHelper.DIR, fileName);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
}
|