Use small icon in location and vpn settings UI
Fixes: 65182905 Test: rerun tests Change-Id: I18aa5c5bb4c8f573872cda3d003506c4dff5177c
This commit is contained in:
@@ -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