diff --git a/src/main/java/com/owncloud/android/authentication/AccountUtils.java b/src/main/java/com/owncloud/android/authentication/AccountUtils.java index 11db8afb4c..b3edda6ee3 100644 --- a/src/main/java/com/owncloud/android/authentication/AccountUtils.java +++ b/src/main/java/com/owncloud/android/authentication/AccountUtils.java @@ -30,12 +30,8 @@ import android.support.annotation.Nullable; import com.owncloud.android.MainApp; import com.owncloud.android.datamodel.ArbitraryDataProvider; -import com.owncloud.android.datamodel.FileDataStorageManager; import com.owncloud.android.lib.common.accounts.AccountUtils.Constants; -import com.owncloud.android.lib.common.operations.RemoteOperationResult; -import com.owncloud.android.lib.common.utils.Log_OC; import com.owncloud.android.lib.resources.status.OwnCloudVersion; -import com.owncloud.android.operations.GetCapabilitiesOperarion; import com.owncloud.android.ui.activity.ManageAccountsActivity; @@ -163,18 +159,6 @@ public class AccountUtils { if (found) { SharedPreferences.Editor appPrefs = PreferenceManager.getDefaultSharedPreferences(context).edit(); appPrefs.putString(PREF_SELECT_OC_ACCOUNT, accountName); - - // update credentials - Thread t = new Thread(() -> { - FileDataStorageManager storageManager = new FileDataStorageManager(account, - context.getContentResolver()); - GetCapabilitiesOperarion getCapabilities = new GetCapabilitiesOperarion(); - RemoteOperationResult updateResult = getCapabilities.execute(storageManager, context); - Log_OC.w(TAG, "Update Capabilities: " + updateResult.isSuccess()); - }); - - t.start(); - appPrefs.apply(); result = true; break;