This commit is contained in:
Alexey Kulish 2016-07-06 17:47:42 +03:00
parent cbf2f4378a
commit fce2fb9e00
3 changed files with 3 additions and 5 deletions

View file

@ -66,9 +66,7 @@
layout="@layout/recording_note_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:visibility="gone"
tools:visibility="visible"/>
android:layout_gravity="bottom|left"/>
<LinearLayout
android:layout_width="wrap_content"

View file

@ -205,7 +205,7 @@ public class AudioVideoNoteRecordingMenu {
CurrentRecording recording = plugin.getCurrentRecording();
boolean show = showViewfinder && recording != null && recording.getType() != AVActionType.REC_AUDIO;
if (isLandscapeLayout() && mapActivity != null) {
int buttonsHeight = view.findViewById(R.id.buttonsContainer).getHeight();
int buttonsHeight = (int) view.getResources().getDimension(R.dimen.map_route_buttons_height);
int tileBoxHeight = mapActivity.getMapView().getCurrentRotatedTileBox().getPixHeight();
int h = show ? tileBoxHeight : buttonsHeight;
view.setLayoutParams(new LinearLayout.LayoutParams(AndroidUtils.dpToPx(mapActivity, 320f), h));

View file

@ -1503,7 +1503,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
private void updateRecordControl(final MapActivity mapActivity, final File f) {
recordControl.setText(app.getString(R.string.shared_string_control_stop), "");
recordControl.setImageDrawable(mapActivity.getResources().getDrawable(R.drawable.widget_icon_av_active));
recordControl.setIcons(R.drawable.widget_icon_av_active, R.drawable.widget_icon_av_active);
final MapInfoLayer mil = mapActivity.getMapLayers().getMapInfoLayer();
if (!recordControl.isVisible()) {
recordControl.setExplicitlyVisible(true);