From 99defa7e5e1ed327e9a4125f3a605589f5d80379 Mon Sep 17 00:00:00 2001 From: qibin Date: Wed, 20 Mar 2019 16:31:35 +0800 Subject: [PATCH] Album id may be null on some machine, this commit will return ALBUM_ID_ALL when album id is null --- .../main/java/com/zhihu/matisse/internal/entity/Album.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matisse/src/main/java/com/zhihu/matisse/internal/entity/Album.java b/matisse/src/main/java/com/zhihu/matisse/internal/entity/Album.java index 9ebafb8c5..b3546f01d 100644 --- a/matisse/src/main/java/com/zhihu/matisse/internal/entity/Album.java +++ b/matisse/src/main/java/com/zhihu/matisse/internal/entity/Album.java @@ -87,6 +87,10 @@ public void writeToParcel(Parcel dest, int flags) { } public String getId() { + if (mId == null) { + return ALBUM_ID_ALL; + } + return mId; }