mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Merge pull request #4416 from nextcloud/noStorageManager
storage manager can be null
This commit is contained in:
commit
f2afee900d
1 changed files with 4 additions and 0 deletions
|
@ -747,6 +747,10 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
|||
showShareAvatar = mStorageManager.getCapability(account.name).getVersion().isShareesOnDavSupported();
|
||||
}
|
||||
|
||||
if (mStorageManager == null) {
|
||||
mStorageManager = new FileDataStorageManager(account, mContext.getContentResolver());
|
||||
}
|
||||
|
||||
if (clear) {
|
||||
mFiles.clear();
|
||||
resetLastTimestamp();
|
||||
|
|
Loading…
Reference in a new issue