Skip to content

Commit

Permalink
Replace usecase by the proper one
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Mar 9, 2023
1 parent 4d8e10f commit b6c7595
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.owncloud.android.domain.capabilities.usecases.RefreshCapabilitiesFromServerAsyncUseCase;
import com.owncloud.android.domain.exceptions.UnauthorizedException;
import com.owncloud.android.domain.files.model.OCFile;
import com.owncloud.android.domain.files.usecases.GetRootFolderPersonalUseCase;
import com.owncloud.android.domain.files.usecases.GetPersonalRootFolderForAccountUseCase;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.usecases.synchronization.SynchronizeFolderUseCase;
import com.owncloud.android.utils.NotificationUtils;
Expand Down Expand Up @@ -150,9 +150,9 @@ public synchronized void onPerformSync(Account account, Bundle extras,
try {
updateCapabilities();
if (!mCancellation) {
@NotNull Lazy<GetRootFolderPersonalUseCase> getRootFolderPersonalUseCaseLazy =
inject(GetRootFolderPersonalUseCase.class);
GetRootFolderPersonalUseCase.Params params = new GetRootFolderPersonalUseCase.Params(account.name);
@NotNull Lazy<GetPersonalRootFolderForAccountUseCase> getRootFolderPersonalUseCaseLazy =
inject(GetPersonalRootFolderForAccountUseCase.class);
GetPersonalRootFolderForAccountUseCase.Params params = new GetPersonalRootFolderForAccountUseCase.Params(account.name);

OCFile rootFolder = getRootFolderPersonalUseCaseLazy.getValue().execute(params);
if (rootFolder != null) {
Expand Down

0 comments on commit b6c7595

Please sign in to comment.