1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Open DAVdroid main activity when add a "DAVdroid Address book" account is added over Settings

This commit is contained in:
Ricki Hirner 2017-03-30 21:22:46 +02:00 committed by Tom Hacohen
parent d6ace869fe
commit 138d344a5b

View File

@ -19,6 +19,8 @@ import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import com.etesync.syncadapter.ui.AccountsActivity;
public class NullAuthenticatorService extends Service {
private AccountAuthenticator accountAuthenticator;
@ -51,7 +53,11 @@ public class NullAuthenticatorService extends Service {
@Override
public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) throws NetworkErrorException {
return null;
Intent intent = new Intent(context, AccountsActivity.class);
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
Bundle bundle = new Bundle();
bundle.putParcelable(AccountManager.KEY_INTENT, intent);
return bundle;
}
@Override