Skip to content

Commit

Permalink
增加Crop功能
Browse files Browse the repository at this point in the history
  • Loading branch information
HuXiaobai committed Nov 14, 2018
1 parent 0d62548 commit 9536005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void setOnRecyclerItemClickListener(OnRecyclerItemClickListener onRecycle

private OnRecyclerItemClickListener onRecyclerItemClickListener;

public DataAdapter(@NonNull Context context, @NonNull List<MediaSelectorFile> data) {
public DataAdapter( Context context, @NonNull List<MediaSelectorFile> data) {
this.mContext = context;
this.mData = data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void loadMedia(boolean isShowCamera, boolean isShowVideo, @Nullable ILoad

mediaFile.filePath = cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Files.FileColumns.DATA));
if (TextUtils.isEmpty(mediaFile.fileName) || TextUtils.isEmpty(mediaFile.filePath)
|| TextUtils.getTrimmedLength(mediaFile.fileName) == 0 || TextUtils.getTrimmedLength(mediaFile.filePath) == 0) {
|| TextUtils.getTrimmedLength(mediaFile.fileName) == 0 || TextUtils.getTrimmedLength(mediaFile.filePath) == 0 || mediaFile.fileName.endsWith(".gif")) {
continue;
}
mediaFile.fileSize = cursor.getInt(cursor.getColumnIndexOrThrow(MediaStore.Files.FileColumns.SIZE));
Expand Down

0 comments on commit 9536005

Please sign in to comment.