Loading res/flag(com.android.documentsui.flags.use_material3)/layout/apps_row.xml +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ limitations under the License. --> <!-- TODO(b/379776735): Remove this after M3 uplift. Currently it's being referenced in AppsRowManager. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_row" Loading src/com/android/documentsui/dirlist/AppsRowManager.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.flags.Flags.useMaterial3; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; Loading Loading @@ -45,6 +47,7 @@ import java.util.Map; /** * A manager class stored apps row chip data list. Data will be synced by RootsFragment. * TODO(b/379776735): Remove this after M3 uplift. */ public class AppsRowManager { Loading Loading @@ -102,6 +105,10 @@ public class AppsRowManager { } private boolean shouldShow(State state, boolean isSearchExpanded) { if (useMaterial3()) { return false; } boolean isHiddenAction = state.action == State.ACTION_CREATE || state.action == State.ACTION_OPEN_TREE || state.action == State.ACTION_PICK_COPY_DESTINATION; Loading Loading
res/flag(com.android.documentsui.flags.use_material3)/layout/apps_row.xml +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ limitations under the License. --> <!-- TODO(b/379776735): Remove this after M3 uplift. Currently it's being referenced in AppsRowManager. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_row" Loading
src/com/android/documentsui/dirlist/AppsRowManager.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.flags.Flags.useMaterial3; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; Loading Loading @@ -45,6 +47,7 @@ import java.util.Map; /** * A manager class stored apps row chip data list. Data will be synced by RootsFragment. * TODO(b/379776735): Remove this after M3 uplift. */ public class AppsRowManager { Loading Loading @@ -102,6 +105,10 @@ public class AppsRowManager { } private boolean shouldShow(State state, boolean isSearchExpanded) { if (useMaterial3()) { return false; } boolean isHiddenAction = state.action == State.ACTION_CREATE || state.action == State.ACTION_OPEN_TREE || state.action == State.ACTION_PICK_COPY_DESTINATION; Loading