mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Upload button: disable/grey when folder is read-only
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
f68e9e06d7
commit
447cac9af9
1 changed files with 4 additions and 3 deletions
|
@ -757,11 +757,12 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
|||
|
||||
if (mFile.canWrite()) {
|
||||
btnChooseFolder.setEnabled(true);
|
||||
ThemeUtils.tintDrawable(btnChooseFolder.getBackground(),
|
||||
ThemeUtils.primaryColor(getAccount(), true, this));
|
||||
btnChooseFolder.setBackgroundTintList(ColorStateList.valueOf(ThemeUtils.primaryColor(getAccount(),
|
||||
true,
|
||||
this)));
|
||||
} else {
|
||||
btnChooseFolder.setEnabled(false);
|
||||
ThemeUtils.tintDrawable(btnChooseFolder.getBackground(), Color.GRAY);
|
||||
btnChooseFolder.setBackgroundTintList(ColorStateList.valueOf(Color.GRAY));
|
||||
}
|
||||
|
||||
if (getSupportActionBar() != null) {
|
||||
|
|
Loading…
Reference in a new issue