mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 18:59:18 +03:00
fix: #1222
This commit is contained in:
parent
ece3acb0c4
commit
e37c1b9b6d
1 changed files with 6 additions and 3 deletions
|
@ -175,7 +175,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
if (mAccountSelected) {
|
if (mAccountSelected) {
|
||||||
setAccount((Account) savedInstanceState.getParcelable(FileActivity.EXTRA_ACCOUNT));
|
setAccount(savedInstanceState.getParcelable(FileActivity.EXTRA_ACCOUNT));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listen for sync messages
|
// Listen for sync messages
|
||||||
|
@ -777,12 +777,16 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
||||||
getStorageManager(), getAccount());
|
getStorageManager(), getAccount());
|
||||||
|
|
||||||
mListView.setAdapter(sa);
|
mListView.setAdapter(sa);
|
||||||
|
}
|
||||||
Button btnChooseFolder = (Button) findViewById(R.id.uploader_choose_folder);
|
Button btnChooseFolder = (Button) findViewById(R.id.uploader_choose_folder);
|
||||||
btnChooseFolder.setOnClickListener(this);
|
btnChooseFolder.setOnClickListener(this);
|
||||||
btnChooseFolder.getBackground().setColorFilter(ThemeUtils.primaryColor(getAccount()),
|
btnChooseFolder.getBackground().setColorFilter(ThemeUtils.primaryColor(getAccount()),
|
||||||
PorterDuff.Mode.SRC_ATOP);
|
PorterDuff.Mode.SRC_ATOP);
|
||||||
|
|
||||||
getSupportActionBar().setBackgroundDrawable(new ColorDrawable(ThemeUtils.primaryColor(getAccount())));
|
if (getSupportActionBar() != null) {
|
||||||
|
getSupportActionBar().setBackgroundDrawable(new ColorDrawable(
|
||||||
|
ThemeUtils.primaryColor(getAccount())));
|
||||||
|
}
|
||||||
|
|
||||||
ThemeUtils.colorStatusBar(this, ThemeUtils.primaryDarkColor(getAccount()));
|
ThemeUtils.colorStatusBar(this, ThemeUtils.primaryDarkColor(getAccount()));
|
||||||
|
|
||||||
|
@ -794,7 +798,6 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
||||||
mListView.setOnItemClickListener(this);
|
mListView.setOnItemClickListener(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected void setupEmptyList() {
|
protected void setupEmptyList() {
|
||||||
mEmptyListContainer = (LinearLayout) findViewById(R.id.empty_list_view);
|
mEmptyListContainer = (LinearLayout) findViewById(R.id.empty_list_view);
|
||||||
|
|
Loading…
Reference in a new issue