-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer scanning apps in details until the user actually needs it. During the first pass of all apps, we only do a "shallow" scan, and then only if the enters the app details, then we do a deep scan.
- Loading branch information
Showing
6 changed files
with
187 additions
and
48 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
23 changes: 23 additions & 0 deletions
23
app/src/main/java/eu/darken/sdmse/analyzer/core/storage/AppDeepScanTask.kt
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.darken.sdmse.analyzer.core.storage | ||
|
||
import eu.darken.sdmse.analyzer.core.AnalyzerTask | ||
import eu.darken.sdmse.common.ca.CaString | ||
import eu.darken.sdmse.common.ca.toCaString | ||
import eu.darken.sdmse.common.pkgs.features.Installed | ||
import eu.darken.sdmse.common.storage.StorageId | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
data class AppDeepScanTask( | ||
val storageId: StorageId, | ||
val installId: Installed.InstallId, | ||
) : AnalyzerTask { | ||
|
||
@Parcelize | ||
data class Result( | ||
private val success: Boolean, | ||
) : AnalyzerTask.Result { | ||
override val primaryInfo: CaString | ||
get() = eu.darken.sdmse.common.R.string.general_result_success_message.toCaString() | ||
} | ||
} |
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
Oops, something went wrong.