diff --git a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java index 68a1fece32..161cdd6e49 100755 --- a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java @@ -33,6 +33,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resources.NotFoundException; +import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; @@ -784,6 +785,15 @@ public class ReceiveExternalFilesActivity extends FileActivity PorterDuff.Mode.SRC_ATOP); btnChooseFolder.setTextColor(ThemeUtils.fontColor(this)); + if (mFile.canWrite()) { + btnChooseFolder.setEnabled(true); + ThemeUtils.tintDrawable(btnChooseFolder.getBackground(), + ThemeUtils.primaryColor(getAccount(), true, this)); + } else { + btnChooseFolder.setEnabled(false); + ThemeUtils.tintDrawable(btnChooseFolder.getBackground(), Color.GRAY); + } + if (getSupportActionBar() != null) { getSupportActionBar().setBackgroundDrawable(new ColorDrawable( ThemeUtils.primaryColor(getAccount(), false, this)));