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

Commit 3a1279f1 authored by Bobby Georgescu's avatar Bobby Georgescu Committed by Android (Google) Code Review
Browse files

Merge "Start Camera album in grid mode" into gb-ub-photos-arches

parents 895e13e8 7a84c578
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -214,9 +214,8 @@ public class AlbumSetPage extends ActivityState implements
    private static boolean albumShouldOpenInFilmstrip(MediaSet album) {
        int itemCount = album.getMediaItemCount();
        ArrayList<MediaItem> list = (itemCount == 1) ? album.getMediaItem(0, 1) : null;
        return (album.isCameraRoll() && itemCount > 0)
        // open in film strip only if there's one item in the album and the item exists
                || (list != null && !list.isEmpty());
        return (list != null && !list.isEmpty());
    }

    WeakReference<Toast> mEmptyAlbumToast = null;