Use small icon in location and vpn settings UI
Fixes: 65182905 Test: rerun tests Change-Id: I18aa5c5bb4c8f573872cda3d003506c4dff5177c
This commit is contained in:
@@ -40,6 +40,8 @@ import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.Xml;
|
||||
|
||||
import com.android.settings.widget.AppPreference;
|
||||
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
@@ -268,7 +270,7 @@ class SettingsInjector {
|
||||
PackageManager pm = mContext.getPackageManager();
|
||||
Drawable appIcon = pm.getDrawable(info.packageName, info.iconId, null);
|
||||
Drawable icon = pm.getUserBadgedIcon(appIcon, info.mUserHandle);
|
||||
Preference pref = new Preference(prefContext);
|
||||
Preference pref = new AppPreference(prefContext);
|
||||
pref.setTitle(info.title);
|
||||
pref.setSummary(null);
|
||||
pref.setIcon(icon);
|
||||
|
||||
Reference in New Issue
Block a user