Wrap a white adaptive background if it is not an AdaptiveIcon

Bug: 183501919
Test: manual test
Change-Id: I6a899aa0fcb724d5318274190f359080fc2d0615
This commit is contained in:
jasonwshsu
2021-04-20 15:19:15 +08:00
committed by Jason Hsu
parent 8ec6502699
commit 9b284a9af1
6 changed files with 35 additions and 10 deletions

View File

@@ -88,6 +88,6 @@ public class CurrentDreamPreferenceController extends BasePreferenceController {
}
final GearPreference gearPref = (GearPreference) preference;
gearPref.setIconSize(RestrictedPreference.ICON_SIZE_SMALL);
Utils.setSafeIcon(gearPref, mBackend.getActiveIcon());
gearPref.setIcon(Utils.getSafeIcon(mBackend.getActiveIcon()));
}
}