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

Commit b3003fa2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[DocsUI M3] Remove the break between folders and files" into main

parents d52c37ca 001a2db3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.documentsui.dirlist;

import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled;

import android.os.UserManager;
import android.view.ViewGroup;

@@ -207,6 +209,11 @@ final class DirectoryAddonsAdapter extends DocumentsAdapter {
            return;
        }

        if (isUseMaterial3FlagEnabled()) {
            // Do not add a visual break between folders and documents in Material3.
            return;
        }

        // Walk down the list of IDs till we encounter something that's not a directory, and
        // insert a whitespace element - this introduces a visual break in the grid between
        // folders and documents.