Commit bcf7d201 authored by Geoffrey Métais's avatar Geoffrey Métais

Medialibrary: Always call onDeviceMounted()

parent 440df05e
Pipeline #5167 passed with stage
in 3 minutes and 58 seconds
......@@ -64,7 +64,7 @@ bool
AndroidMediaLibrary::addDevice(const std::string& uuid, const std::string& path, bool removable)
{
p_lister->addDevice(uuid, path, removable);
return p_DeviceListerCb != nullptr && (m_started ? p_DeviceListerCb->onDeviceMounted(uuid, path) : !p_DeviceListerCb->isDeviceKnown(uuid));
return p_DeviceListerCb != nullptr && (p_DeviceListerCb->onDeviceMounted(uuid, path));
}
std::vector<std::tuple<std::string, std::string, bool>>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment