Use small icon in location and vpn settings UI

Fixes: 65182905
Test: rerun tests
Change-Id: I18aa5c5bb4c8f573872cda3d003506c4dff5177c
This commit is contained in:
Fan Zhang
2017-10-30 13:19:34 -07:00
parent fdf96975e3
commit fc29247da4
7 changed files with 69 additions and 59 deletions

View File

@@ -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);