Merge pull request #11144 from osmandapp/wrong-recording-note

Fix
This commit is contained in:
Vitaliy 2021-03-15 10:43:14 +02:00 committed by GitHub
commit efca3719e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -784,7 +784,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
public boolean updateInfo(DrawSettings drawSettings) { public boolean updateInfo(DrawSettings drawSettings) {
boolean recording = isRecording(); boolean recording = isRecording();
Integer action = AV_DEFAULT_ACTION.get(); Integer action = AV_DEFAULT_ACTION.get();
if (!Algorithms.objectEquals(recording, cachedAction) || !Algorithms.objectEquals(action, cachedRecording)) { if (!Algorithms.objectEquals(recording, cachedRecording) || !Algorithms.objectEquals(action, cachedAction)) {
cachedAction = action; cachedAction = action;
cachedRecording = recording; cachedRecording = recording;
if (recording) { if (recording) {