Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23cd91bc authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Send UID 0 for track changed if there is no media ID

am: a68c7ee4

Change-Id: I1a980b9bc2937fe71cff0ef7c5ccdda5566393f5
parents d03a1ea3 a68c7ee4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -366,6 +366,11 @@ void Device::TrackChangedNotificationResponse(uint8_t label, bool interim,
    }
  }

  if (curr_song_id == "") {
    DEVICE_LOG(WARNING) << "Empty media ID";
    uid = 0;
  }

  auto response = RegisterNotificationResponseBuilder::MakeTrackChangedBuilder(
      interim, uid);
  send_message_cb_.Run(label, false, std::move(response));