[Android] BrowserFavDao: fix typo

Duncan McNamara git at videolan.org
Mon Feb 14 09:15:39 UTC 2022


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Fri Feb 11 10:17:58 2022 +0100| [5ee1e77170f5ee9b50a6e89b45e66b4bb5db103f] | committer: Duncan McNamara

BrowserFavDao: fix typo

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

 .../src/androidTest/java/org/videolan/vlc/database/BrowserFavDaoTest.kt | 2 +-
 .../mediadb/src/main/java/org/videolan/vlc/mediadb/BrowserFavDao.kt     | 2 +-
 .../vlc-android/src/org/videolan/vlc/repository/BrowserFavRepository.kt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/app/src/androidTest/java/org/videolan/vlc/database/BrowserFavDaoTest.kt b/application/app/src/androidTest/java/org/videolan/vlc/database/BrowserFavDaoTest.kt
index 7500e4ce3..c3980f7fa 100644
--- a/application/app/src/androidTest/java/org/videolan/vlc/database/BrowserFavDaoTest.kt
+++ b/application/app/src/androidTest/java/org/videolan/vlc/database/BrowserFavDaoTest.kt
@@ -58,7 +58,7 @@ class BrowserFavDaoTest: DbTest() {
 
         /*===========================================================*/
 
-        val networkFavs = getValue(db.browserFavDao().getAllNetwrokFavs())
+        val networkFavs = getValue(db.browserFavDao().getAllNetworkFavs())
 
         assertThat(networkFavs.size, equalTo(2))
         assertThat(networkFavs, hasItem(fakeNetworkFavs[0]))
diff --git a/application/mediadb/src/main/java/org/videolan/vlc/mediadb/BrowserFavDao.kt b/application/mediadb/src/main/java/org/videolan/vlc/mediadb/BrowserFavDao.kt
index 19fb893d5..b63847196 100644
--- a/application/mediadb/src/main/java/org/videolan/vlc/mediadb/BrowserFavDao.kt
+++ b/application/mediadb/src/main/java/org/videolan/vlc/mediadb/BrowserFavDao.kt
@@ -41,7 +41,7 @@ interface BrowserFavDao {
     fun getAll(): Flow<List<BrowserFav>>
 
     @Query("SELECT * from fav_table where type = 0")
-    fun getAllNetwrokFavs(): LiveData<List<BrowserFav>>
+    fun getAllNetworkFavs(): LiveData<List<BrowserFav>>
 
     @Query("SELECT * from fav_table where type = 1")
     fun getAllLocalFavs(): LiveData<List<BrowserFav>>
diff --git a/application/vlc-android/src/org/videolan/vlc/repository/BrowserFavRepository.kt b/application/vlc-android/src/org/videolan/vlc/repository/BrowserFavRepository.kt
index 4f5ba67c7..ef3aadd7e 100644
--- a/application/vlc-android/src/org/videolan/vlc/repository/BrowserFavRepository.kt
+++ b/application/vlc-android/src/org/videolan/vlc/repository/BrowserFavRepository.kt
@@ -44,7 +44,7 @@ class BrowserFavRepository(private val browserFavDao: BrowserFavDao) {
 
     private val networkMonitor = NetworkMonitor.getInstance(AppContextProvider.appContext)
 
-    val networkFavs by lazy { browserFavDao.getAllNetwrokFavs() }
+    val networkFavs by lazy { browserFavDao.getAllNetworkFavs() }
 
     val browserFavorites by lazy { browserFavDao.getAll() }
 



More information about the Android mailing list