Fixed deprecation.
This commit is contained in:
parent
c5fc752bdd
commit
51708044d2
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package net.osmand.plus.mapcontextmenu.controllers;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
|
||||
import net.osmand.binary.RouteDataObject;
|
||||
import net.osmand.data.PointDescription;
|
||||
|
@ -47,6 +48,6 @@ public class ImpassibleRoadsMenuController extends MenuController {
|
|||
|
||||
@Override
|
||||
public Drawable getLeftIcon() {
|
||||
return getMapActivity().getResources().getDrawable(R.drawable.map_pin_avoid_road);
|
||||
return ContextCompat.getDrawable(getMapActivity(), R.drawable.map_pin_avoid_road);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue