diff --git a/src/main/java/com/nextcloud/client/network/ClientFactory.java b/src/main/java/com/nextcloud/client/network/ClientFactory.java index e3fbfceb38..363cc04dde 100644 --- a/src/main/java/com/nextcloud/client/network/ClientFactory.java +++ b/src/main/java/com/nextcloud/client/network/ClientFactory.java @@ -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, diff --git a/src/main/java/com/nextcloud/client/network/ClientFactoryImpl.java b/src/main/java/com/nextcloud/client/network/ClientFactoryImpl.java index fe7c2269e3..e4b7c5da92 100644 --- a/src/main/java/com/nextcloud/client/network/ClientFactoryImpl.java +++ b/src/main/java/com/nextcloud/client/network/ClientFactoryImpl.java @@ -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); } diff --git a/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java b/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java index cadaa25c86..143e733782 100755 --- a/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java +++ b/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java @@ -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) {