Loading src/com/android/documentsui/dirlist/DirectoryAddonsAdapter.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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. Loading Loading
src/com/android/documentsui/dirlist/DirectoryAddonsAdapter.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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. Loading