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;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountManager;
|
||||
import android.content.Context;
|
||||
|
||||
public class AccountFeatureProviderImpl implements AccountFeatureProvider {
|
||||
@Override
|
||||
public String getAccountType() {
|
||||
return null;
|
||||
return "com.google";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Account[] getAccounts(Context context) {
|
||||
return new Account[0];
|
||||
return AccountManager.get(context).getAccountsByType("com.google");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user