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

Commit ff9ab66d authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "DocumentsUI: Hide pick button of copy destination picker for read only directory."

parents 85229422 c2eaa6e2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -97,7 +97,6 @@ public class PickFragment extends Fragment {
                              CharSequence displayName) {
        if (mContainer != null) {
            if (pickTarget != null) {
                mContainer.setVisibility(View.VISIBLE);
                final Locale locale = getResources().getConfiguration().locale;
                switch (action) {
                    case BaseActivity.State.ACTION_OPEN_TREE:
@@ -112,7 +111,9 @@ public class PickFragment extends Fragment {
                    default:
                        throw new IllegalArgumentException("Illegal action for PickFragment.");
                }

            }
            if (pickTarget != null && pickTarget.isCreateSupported()) {
                mContainer.setVisibility(View.VISIBLE);
            } else {
                mContainer.setVisibility(View.GONE);
            }