mirror of
https://github.com/etesync/android
synced 2024-12-23 15:18:14 +00:00
Open DAVdroid main activity when add a "DAVdroid Address book" account is added over Settings
This commit is contained in:
parent
d6ace869fe
commit
138d344a5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user