Merge pull request #4416 from nextcloud/noStorageManager

storage manager can be null
This commit is contained in:
Andy Scherzinger 2019-08-26 11:25:07 +02:00 committed by GitHub
commit f2afee900d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();