Use small icon in location and vpn settings UI
Fixes: 65182905 Test: rerun tests Change-Id: I18aa5c5bb4c8f573872cda3d003506c4dff5177c
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.settings.accounts;
|
||||
|
||||
import static android.content.Intent.EXTRA_USER;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
@@ -25,12 +27,10 @@ import android.os.UserManager;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.support.v7.preference.Preference.OnPreferenceClickListener;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.widget.AppPreference;
|
||||
|
||||
import static android.content.Intent.EXTRA_USER;
|
||||
|
||||
public class AccountTypePreference extends Preference implements OnPreferenceClickListener {
|
||||
public class AccountTypePreference extends AppPreference implements OnPreferenceClickListener {
|
||||
/**
|
||||
* Title of the tile that is shown to the user.
|
||||
* @attr ref android.R.styleable#PreferenceHeader_title
|
||||
|
@@ -16,15 +16,14 @@
|
||||
|
||||
package com.android.settings.accounts;
|
||||
|
||||
import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.support.v7.preference.Preference;
|
||||
|
||||
import com.android.settingslib.RestrictedLockUtils;
|
||||
import com.android.settingslib.RestrictedPreference;
|
||||
|
||||
import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
|
||||
/**
|
||||
* ProviderPreference is used to display an image to the left of a provider name.
|
||||
* The preference ultimately calls AccountManager.addAccount() for the account type.
|
||||
@@ -35,6 +34,7 @@ public class ProviderPreference extends RestrictedPreference {
|
||||
public ProviderPreference(
|
||||
Context context, String accountType, Drawable icon, CharSequence providerName) {
|
||||
super(context);
|
||||
setUseSmallIcon(true);
|
||||
mAccountType = accountType;
|
||||
setIcon(icon);
|
||||
setPersistent(false);
|
||||
|
Reference in New Issue
Block a user