|
@@ -23,22 +23,14 @@ import android.accounts.Account;
|
|
import android.accounts.AccountManager;
|
|
import android.accounts.AccountManager;
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.content.SharedPreferences;
|
|
-import android.net.Uri;
|
|
|
|
import android.preference.PreferenceManager;
|
|
import android.preference.PreferenceManager;
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
|
|
|
import com.owncloud.android.MainApp;
|
|
import com.owncloud.android.MainApp;
|
|
import com.owncloud.android.datamodel.ArbitraryDataProvider;
|
|
import com.owncloud.android.datamodel.ArbitraryDataProvider;
|
|
import com.owncloud.android.datamodel.OCFile;
|
|
import com.owncloud.android.datamodel.OCFile;
|
|
-import com.owncloud.android.lib.common.OwnCloudAccount;
|
|
|
|
-import com.owncloud.android.lib.common.OwnCloudClient;
|
|
|
|
-import com.owncloud.android.lib.common.OwnCloudClientManagerFactory;
|
|
|
|
-import com.owncloud.android.lib.common.UserInfo;
|
|
|
|
import com.owncloud.android.lib.common.accounts.AccountUtils.Constants;
|
|
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.lib.resources.status.OwnCloudVersion;
|
|
-import com.owncloud.android.lib.resources.users.GetRemoteUserInfoOperation;
|
|
|
|
import com.owncloud.android.ui.activity.ManageAccountsActivity;
|
|
import com.owncloud.android.ui.activity.ManageAccountsActivity;
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.NonNull;
|
|
@@ -48,7 +40,6 @@ import androidx.annotation.Nullable;
|
|
* Helper class for dealing with accounts.
|
|
* Helper class for dealing with accounts.
|
|
*/
|
|
*/
|
|
public final class AccountUtils {
|
|
public final class AccountUtils {
|
|
- private static final String TAG = AccountUtils.class.getSimpleName();
|
|
|
|
private static final String PREF_SELECT_OC_ACCOUNT = "select_oc_account";
|
|
private static final String PREF_SELECT_OC_ACCOUNT = "select_oc_account";
|
|
|
|
|
|
public static final int ACCOUNT_VERSION = 1;
|
|
public static final int ACCOUNT_VERSION = 1;
|