Cleanup code

This commit is contained in:
max-klaus 2020-02-17 19:24:33 +03:00
parent 8cf98181da
commit 35a8f65975

View file

@ -775,21 +775,6 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
}
}
private void updateWidgetIcon(final TextInfoWidget recordPlaceControl) {
recordPlaceControl.setIcons(R.drawable.widget_icon_av_inactive_day,
R.drawable.widget_icon_av_inactive_night);
if (AV_DEFAULT_ACTION.get() == AV_DEFAULT_ACTION_VIDEO) {
recordPlaceControl.setIcons(R.drawable.widget_av_video_day,
R.drawable.widget_av_video_night);
} else if (AV_DEFAULT_ACTION.get() == AV_DEFAULT_ACTION_TAKEPICTURE) {
recordPlaceControl.setIcons(R.drawable.widget_av_photo_day,
R.drawable.widget_av_photo_night);
} else if (AV_DEFAULT_ACTION.get() == AV_DEFAULT_ACTION_AUDIO) {
recordPlaceControl.setIcons(R.drawable.widget_av_audio_day,
R.drawable.widget_av_audio_night);
}
}
public void defaultAction(final MapActivity mapActivity) {
final Location loc = app.getLocationProvider().getLastKnownLocation();
// double lat = mapActivity.getMapView().getLatitude();