Skip to content

Commit

Permalink
修复坚果pro和荣耀8无法获取媒体库文件路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanTanSheng committed Jul 31, 2018
1 parent 95b0dc2 commit d07eae3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.os.Build;
import android.provider.MediaStore;
import android.support.v4.content.ContentResolverCompat;
import android.text.TextUtils;
import android.util.Log;

import com.huantansheng.easyphotos.R;
Expand Down Expand Up @@ -125,6 +126,9 @@ private void initAlbum(Activity act) {
long size = cursor.getInt(sizeCol);
int width = 0;
int height = 0;
if (TextUtils.isEmpty(path) || TextUtils.isEmpty(type)) {
continue;
}
if (!Setting.showGif) {
if (path.endsWith(Type.GIF) || type.endsWith(Type.GIF)) {
continue;
Expand Down

0 comments on commit d07eae3

Please sign in to comment.