From 9c2f7e464297c29538635604571f5fad7d599292 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Fri, 23 Aug 2024 09:14:01 +0200 Subject: [PATCH] Dont show toast Signed-off-by: alperozturk --- .../com/owncloud/android/operations/common/SyncOperation.java | 3 ++- app/src/main/res/values/strings.xml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/operations/common/SyncOperation.java b/app/src/main/java/com/owncloud/android/operations/common/SyncOperation.java index 89a1a42212..6cd6d97e68 100644 --- a/app/src/main/java/com/owncloud/android/operations/common/SyncOperation.java +++ b/app/src/main/java/com/owncloud/android/operations/common/SyncOperation.java @@ -20,6 +20,7 @@ import com.owncloud.android.lib.common.OwnCloudClient; import com.owncloud.android.lib.common.operations.OnRemoteOperationListener; import com.owncloud.android.lib.common.operations.RemoteOperation; import com.owncloud.android.lib.common.operations.RemoteOperationResult; +import com.owncloud.android.lib.common.utils.Log_OC; import androidx.annotation.NonNull; @@ -48,7 +49,7 @@ public abstract class SyncOperation extends RemoteOperation { */ public RemoteOperationResult execute(Context context) { if (storageManager.getUser().isAnonymous()) { - ContextExtensionsKt.showToast(context, R.string.anonymous_account_type_warning_text); + Log_OC.d("SyncOperation","Trying to execute a sync operation with anonymous account, operation cancelled"); return new RemoteOperationResult(RemoteOperationResult.ResultCode.ACCOUNT_EXCEPTION); } else { return super.execute(this.storageManager.getUser(), context); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2f55aa6c78..5c06a52d45 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -6,7 +6,6 @@ ~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only --> - Trying to execute a sync operation with anonymous account, operation cancelled" %1$s Android app version %1$s version %1$s, build #%2$s