[Android] Medialibrary: Always call onDeviceMounted()

Geoffrey Métais git at videolan.org
Fri Mar 1 13:21:03 CET 2019


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

Medialibrary: Always call onDeviceMounted()

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

 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