[Android] Medialibrary: Always call onDeviceMounted()

Geoffrey Métais git at videolan.org
Fri Mar 1 14:26:38 CET 2019


vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar  1 13:20:20 2019 +0100| [f6a24a65a10b2882ca3d1bb7d8d80166344731c7] | committer: Geoffrey Métais

Medialibrary: Always call onDeviceMounted()

(cherry picked from commit bcf7d201fa2782c85b5f6fc8718f93d4729963a8)

> https://code.videolan.org/videolan/vlc-android/commit/f6a24a65a10b2882ca3d1bb7d8d80166344731c7
---

 medialibrary/jni/AndroidMediaLibrary.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index c613e6d07..cfc41270f 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -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>>



More information about the Android mailing list