Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Jan 10, 2020
1 parent aaba0a8 commit fb969cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public void setData(List<Object> objects, ExtendedListFragment.SearchType search
}

if (mStorageManager == null) {
mStorageManager = new FileDataStorageManagerImpl(user.toPlatformAccount(), activity.getContentResolver());
mStorageManager = new FileDataStorageManagerImpl(user.toPlatformAccount(), activity);
}

if (clear) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.datamodel.Template;
import com.owncloud.android.files.CreateFileFromTemplateOperation;
Expand Down Expand Up @@ -249,9 +250,9 @@ protected String doInBackground(Void... voids) {
OCFile temp = FileStorageUtils.fillOCFile((RemoteFile) newFileResult.getData().get(0));

if (chooseTemplateDialogFragmentWeakReference.get() != null) {
FileDataStorageManager storageManager = new FileDataStorageManager(
FileDataStorageManager storageManager = new FileDataStorageManagerImpl(
user.toPlatformAccount(),
chooseTemplateDialogFragmentWeakReference.get().requireContext().getContentResolver());
chooseTemplateDialogFragmentWeakReference.get().requireContext());
storageManager.saveFile(temp);
file = storageManager.getFileByPath(path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.lib.common.Creator;
import com.owncloud.android.lib.common.OwnCloudClient;
Expand Down Expand Up @@ -253,9 +254,9 @@ protected String doInBackground(Void... voids) {
OCFile temp = FileStorageUtils.fillOCFile((RemoteFile) newFileResult.getData().get(0));

if (chooseTemplateDialogFragmentWeakReference.get() != null) {
FileDataStorageManager storageManager = new FileDataStorageManager(
FileDataStorageManager storageManager = new FileDataStorageManagerImpl(
user.toPlatformAccount(),
chooseTemplateDialogFragmentWeakReference.get().requireContext().getContentResolver());
chooseTemplateDialogFragmentWeakReference.get().requireContext());
storageManager.saveFile(temp);
file = storageManager.getFileByPath(path);

Expand Down

0 comments on commit fb969cc

Please sign in to comment.