package com.owncloud.android.ui.activity;\r
\r
import com.actionbarsherlock.app.SherlockFragmentActivity;\r
-import com.owncloud.android.authentication.AccountAuthenticator;\r
import com.owncloud.android.ui.adapter.LandingScreenAdapter;\r
\r
import android.accounts.Account;\r
import android.widget.AdapterView.OnItemClickListener;\r
import android.widget.GridView;\r
import android.widget.Toast;\r
+\r
+import com.owncloud.android.MainApp;\r
import com.owncloud.android.R;\r
\r
/**\r
case DialogInterface.BUTTON_POSITIVE:\r
Intent intent = new Intent(android.provider.Settings.ACTION_ADD_ACCOUNT);\r
intent.putExtra("authorities",\r
- new String[] { AccountAuthenticator.AUTHORITY });\r
+ new String[] { MainApp.getAuthTokenType() });\r
startActivity(intent);\r
break;\r
case DialogInterface.BUTTON_NEGATIVE:\r
private boolean accountsAreSetup() {\r
AccountManager accMan = AccountManager.get(this);\r
Account[] accounts = accMan\r
- .getAccountsByType(AccountAuthenticator.ACCOUNT_TYPE);\r
+ .getAccountsByType(MainApp.getAccountType());\r
return accounts.length > 0;\r
}\r
\r