3 files changed
+8
-4
No files matched your search
@@ -34,7 +34,8 @@ import java.io.IOException;
|
||||
public interface ClientFactory {
|
||||
|
||||
OwnCloudClient create(Account account)
|
||||
throws OperationCanceledException, AuthenticatorException, IOException, AccountUtils.AccountNotFoundException;
|
||||
throws OperationCanceledException, AuthenticatorException, IOException,
|
||||
AccountUtils.AccountNotFoundException;
|
||||
|
||||
OwnCloudClient create(Account account, Activity currentActivity)
|
||||
throws OperationCanceledException, AuthenticatorException, IOException,
|
||||
|
||||
@@ -43,13 +43,15 @@ class ClientFactoryImpl implements ClientFactory {
|
||||
|
||||
@Override
|
||||
public OwnCloudClient create(Account account)
|
||||
throws OperationCanceledException, AuthenticatorException, IOException, AccountUtils.AccountNotFoundException {
|
||||
throws OperationCanceledException, AuthenticatorException, IOException,
|
||||
AccountUtils.AccountNotFoundException {
|
||||
return OwnCloudClientFactory.createOwnCloudClient(account, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OwnCloudClient create(Account account, Activity currentActivity)
|
||||
throws OperationCanceledException, AuthenticatorException, IOException, AccountUtils.AccountNotFoundException {
|
||||
throws OperationCanceledException, AuthenticatorException, IOException,
|
||||
AccountUtils.AccountNotFoundException {
|
||||
return OwnCloudClientFactory.createOwnCloudClient(account, context, currentActivity);
|
||||
}
|
||||
|
||||
|
||||
@@ -781,7 +781,8 @@ public class FileOperationsHelper {
|
||||
|
||||
intent.setDataAndType(uri, file.getMimeType());
|
||||
fileActivity.startActivityForResult(Intent.createChooser(intent,
|
||||
fileActivity.getString(R.string.set_as)), 200);
|
||||
fileActivity.getString(R.string.set_as)),
|
||||
200);
|
||||
|
||||
intent.setDataAndType(uri, file.getMimeType());
|
||||
} catch (ActivityNotFoundException exception) {
|
||||
|
||||
Reference in new issue
Block a user