Fix review
This commit is contained in:
parent
051d77f80a
commit
928b77d29e
2 changed files with 1 additions and 3 deletions
|
@ -119,7 +119,6 @@ public class FavoriteImageDrawable extends Drawable {
|
||||||
@Override
|
@Override
|
||||||
protected void onBoundsChange(Rect bounds) {
|
protected void onBoundsChange(Rect bounds) {
|
||||||
super.onBoundsChange(bounds);
|
super.onBoundsChange(bounds);
|
||||||
Rect bs = new Rect(bounds);
|
|
||||||
if (!withShadow && !synced) {
|
if (!withShadow && !synced) {
|
||||||
uiBackgroundIcon.setBounds(0, 0,
|
uiBackgroundIcon.setBounds(0, 0,
|
||||||
uiBackgroundIcon.getIntrinsicWidth(), uiBackgroundIcon.getIntrinsicHeight());
|
uiBackgroundIcon.getIntrinsicWidth(), uiBackgroundIcon.getIntrinsicHeight());
|
||||||
|
|
|
@ -110,8 +110,7 @@ public class ParkingPositionMenuController extends MenuController {
|
||||||
return FavoriteImageDrawable.getOrCreate(mapActivity.getMyApplication(),
|
return FavoriteImageDrawable.getOrCreate(mapActivity.getMyApplication(),
|
||||||
ContextCompat.getColor(mapActivity, R.color.parking_icon_background), false, fav);
|
ContextCompat.getColor(mapActivity, R.color.parking_icon_background), false, fav);
|
||||||
} else {
|
} else {
|
||||||
return getIcon(plugin == null || plugin.getParkingTime() <= 0 ?
|
return null;
|
||||||
R.drawable.mx_parking : R.drawable.mx_special_parking_time_limited, R.color.map_widget_blue);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue