Settings: Set the default account provider to Google
Change-Id: I4cedd3ea99be911e874270bee86f9c5447cc4268 Signed-off-by: Adithya <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
@@ -1,16 +1,17 @@
|
|||||||
package com.android.settings.accounts;
|
package com.android.settings.accounts;
|
||||||
|
|
||||||
import android.accounts.Account;
|
import android.accounts.Account;
|
||||||
|
import android.accounts.AccountManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
public class AccountFeatureProviderImpl implements AccountFeatureProvider {
|
public class AccountFeatureProviderImpl implements AccountFeatureProvider {
|
||||||
@Override
|
@Override
|
||||||
public String getAccountType() {
|
public String getAccountType() {
|
||||||
return null;
|
return "com.google";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Account[] getAccounts(Context context) {
|
public Account[] getAccounts(Context context) {
|
||||||
return new Account[0];
|
return AccountManager.get(context).getAccountsByType("com.google");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user