-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: alperozturk <[email protected]>
- Loading branch information
1 parent
2578eca
commit 99725f0
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
/* | ||
* Nextcloud - Android Client | ||
* | ||
* SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH | ||
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only | ||
* SPDX-FileCopyrightText: 2025 Your Name <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
package com.owncloud.android.ui.asynctasks | ||
package com.owncloud.android.ui.tasks | ||
|
||
import android.content.Context | ||
import androidx.lifecycle.lifecycleScope | ||
|
@@ -36,7 +34,7 @@ class GallerySearchTask( | |
private val photoFragmentWeakReference = WeakReference(photoFragment) | ||
private val tag = "GallerySearchTask" | ||
|
||
@Suppress("DEPRECATION", "MagicNumber") | ||
@Suppress("DEPRECATION") | ||
fun execute(endDate: Long, limit: Int) { | ||
val photoFragment = photoFragmentWeakReference.get() ?: return | ||
photoFragment.lifecycleScope.launch(Dispatchers.IO) { | ||
|
@@ -51,7 +49,8 @@ class GallerySearchTask( | |
setLimit(limit) | ||
setEndDate(endDate) | ||
|
||
// workaround to keep SearchRemoteOperation functioning correctly even if we don't actively use startDate | ||
// workaround to keep SearchRemoteOperation | ||
// functioning correctly even if we don't actively use startDate | ||
setStartDate(0L) | ||
this | ||
} | ||
|
@@ -81,6 +80,7 @@ class GallerySearchTask( | |
} | ||
} | ||
|
||
@Suppress("MagicNumber") | ||
private fun logGallerySearch(endDate: Long, limit: Int) { | ||
if (!BuildConfig.DEBUG) { | ||
return | ||
|