Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae6b5c35 authored by John Hoford's avatar John Hoford Committed by Android Git Automerger
Browse files

am 98b296ff: fix Gallery crash while deleting a picture

* commit '98b296ff':
  fix Gallery crash while deleting a picture
parents 962df4d3 98b296ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -794,7 +794,8 @@ public abstract class PhotoPage extends ActivityState implements
        mMediaSet.enumerateMediaItems(new MediaSet.ItemConsumer() {
            @Override
            public void consume(int index, MediaItem item) {
                if (item.getMediaType() == MediaObject.MEDIA_TYPE_IMAGE) {
                if (item != null
                        && item.getMediaType() == MediaObject.MEDIA_TYPE_IMAGE) {
                    count[0]++;
                }
            }