fix(S3): ContentRepositoryFactory to use proper Cloud

This commit is contained in:
Manuel Jenny 2021-04-20 14:12:51 +02:00
parent 24e96b7205
commit fe15c748bc
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -4,7 +4,7 @@ import android.content.Context;
import org.cryptomator.data.repository.CloudContentRepositoryFactory;
import org.cryptomator.domain.Cloud;
import org.cryptomator.domain.PCloud;
import org.cryptomator.domain.S3Cloud;
import org.cryptomator.domain.repository.CloudContentRepository;
import javax.inject.Inject;
@ -29,7 +29,7 @@ public class S3CloudContentRepositoryFactory implements CloudContentRepositoryFa
@Override
public CloudContentRepository cloudContentRepositoryFor(Cloud cloud) {
return new S3CloudContentRepository((PCloud) cloud, context);
return new S3CloudContentRepository((S3Cloud) cloud, context);
}
}