SelfUpdateWorker: Move self-updates logic into dedicated worker
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
package com.aurora.extensions
|
||||
|
||||
import com.aurora.gplayapi.data.models.File
|
||||
|
||||
fun <T> MutableList<T>.flushAndAdd(list: List<T>) {
|
||||
clear()
|
||||
addAll(list)
|
||||
@@ -28,3 +30,7 @@ fun <T> MutableSet<T>.flushAndAdd(list: Set<T>) {
|
||||
clear()
|
||||
addAll(list)
|
||||
}
|
||||
|
||||
fun List<File>.requiresObbDir(): Boolean {
|
||||
return this.any { it.type == File.FileType.OBB || it.type == File.FileType.PATCH }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user