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

Commit c2eaa6e2 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

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

BUG=20238336

Change-Id: Ia2a0ef2889a2153d99c0f305deda151a04483173
parent 52743f3b
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);
            }