Wrap a white adaptive background if it is not an AdaptiveIcon
Bug: 183501919 Test: manual test Change-Id: I6a899aa0fcb724d5318274190f359080fc2d0615
This commit is contained in:
@@ -124,7 +124,7 @@ public class PasswordsPreferenceController extends BasePreferenceController
|
||||
serviceInfo,
|
||||
serviceInfo.applicationInfo,
|
||||
user);
|
||||
Utils.setSafeIcon(pref, icon);
|
||||
pref.setIcon(Utils.getSafeIcon(icon));
|
||||
pref.setIntent(
|
||||
new Intent(Intent.ACTION_MAIN)
|
||||
.setClassName(serviceInfo.packageName, service.getPasswordsActivity()));
|
||||
|
@@ -66,7 +66,7 @@ public abstract class DefaultAppPreferenceController extends AbstractPreferenceC
|
||||
}
|
||||
if (!TextUtils.isEmpty(defaultAppLabel)) {
|
||||
preference.setSummary(defaultAppLabel);
|
||||
Utils.setSafeIcon(preference, getDefaultAppIcon());
|
||||
preference.setIcon(Utils.getSafeIcon(getDefaultAppIcon()));
|
||||
} else {
|
||||
Log.d(TAG, "No default app");
|
||||
preference.setSummary(R.string.app_list_preference_none);
|
||||
|
Reference in New Issue
Block a user