Fix review

This commit is contained in:
Dima-1 2020-06-12 10:31:58 +03:00
parent 051d77f80a
commit 928b77d29e
2 changed files with 1 additions and 3 deletions

View file

@ -119,7 +119,6 @@ public class FavoriteImageDrawable extends Drawable {
@Override
protected void onBoundsChange(Rect bounds) {
super.onBoundsChange(bounds);
Rect bs = new Rect(bounds);
if (!withShadow && !synced) {
uiBackgroundIcon.setBounds(0, 0,
uiBackgroundIcon.getIntrinsicWidth(), uiBackgroundIcon.getIntrinsicHeight());

View file

@ -110,8 +110,7 @@ public class ParkingPositionMenuController extends MenuController {
return FavoriteImageDrawable.getOrCreate(mapActivity.getMyApplication(),
ContextCompat.getColor(mapActivity, R.color.parking_icon_background), false, fav);
} else {
return getIcon(plugin == null || plugin.getParkingTime() <= 0 ?
R.drawable.mx_parking : R.drawable.mx_special_parking_time_limited, R.color.map_widget_blue);
return null;
}
}