Glimpse: MEDIA_STORE_REELS_LOADER_ID -> MEDIA_STORE_MEDIA_LOADER_ID

Change-Id: I4c626456b29f841aaa7b4b9cc5df03b6a1bd80c4
diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt
index ab5c148..44f4fd9 100644
--- a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt
+++ b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt
@@ -131,7 +131,7 @@
     }
 
     override fun onCreateLoader(id: Int, args: Bundle?) = when (id) {
-        MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal -> {
+        MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal -> {
             val projection = MediaQuery.MediaProjection
             val imageOrVideo =
                 (MediaStore.Files.FileColumns.MEDIA_TYPE eq MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) or
@@ -182,7 +182,7 @@
 
     private fun initCursorLoader() {
         loaderManagerInstance.initLoader(
-            MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal,
+            MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal,
             bundleOf().apply {
                 when (album.id) {
                     MediaStoreBuckets.MEDIA_STORE_BUCKET_TRASH.id -> {
diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt
index bd04561..20cd9b3 100644
--- a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt
+++ b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt
@@ -339,7 +339,7 @@
     }
 
     override fun onCreateLoader(id: Int, args: Bundle?) = when (id) {
-        MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal -> {
+        MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal -> {
             val projection = MediaQuery.MediaProjection
             val imageOrVideo =
                 (MediaStore.Files.FileColumns.MEDIA_TYPE eq MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) or
@@ -394,7 +394,7 @@
 
     private fun initCursorLoader() {
         loaderManagerInstance.initLoader(
-            MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal,
+            MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal,
             bundleOf().apply {
                 album?.let {
                     when (it.id) {
diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt
index a7057e7..3618065 100644
--- a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt
+++ b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt
@@ -115,7 +115,7 @@
     }
 
     override fun onCreateLoader(id: Int, args: Bundle?) = when (id) {
-        MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal -> {
+        MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal -> {
             val projection = MediaQuery.MediaProjection
             val imageOrVideo =
                 (MediaStore.Files.FileColumns.MEDIA_TYPE eq MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) or
@@ -151,7 +151,7 @@
 
     private fun initCursorLoader() {
         loaderManagerInstance.initLoader(
-            MediaStoreRequests.MEDIA_STORE_REELS_LOADER_ID.ordinal,
+            MediaStoreRequests.MEDIA_STORE_MEDIA_LOADER_ID.ordinal,
             bundleOf().apply {
                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
                     // Exclude trashed media
diff --git a/app/src/main/java/org/lineageos/glimpse/utils/MediaStoreRequests.kt b/app/src/main/java/org/lineageos/glimpse/utils/MediaStoreRequests.kt
index c95d7d8..7023d31 100644
--- a/app/src/main/java/org/lineageos/glimpse/utils/MediaStoreRequests.kt
+++ b/app/src/main/java/org/lineageos/glimpse/utils/MediaStoreRequests.kt
@@ -6,6 +6,6 @@
 package org.lineageos.glimpse.utils
 
 enum class MediaStoreRequests {
-    MEDIA_STORE_REELS_LOADER_ID,
+    MEDIA_STORE_MEDIA_LOADER_ID,
     MEDIA_STORE_ALBUMS_LOADER_ID,
 }