Fix #2562
This commit is contained in:
parent
cbf2f4378a
commit
fce2fb9e00
3 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue