Skip to content

Commit

Permalink
Release 2.2.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaobozhen committed May 7, 2022
1 parent 0c41a55 commit b027f3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ import java.io.File
import kotlin.math.abs

abstract class BaseAppDetailActivity :
CheckPackageOnResumingActivity<ActivityAppDetailBinding>(), IDetailContainer,
CheckPackageOnResumingActivity<ActivityAppDetailBinding>(),
IDetailContainer,
SearchView.OnQueryTextListener {

protected val viewModel: DetailViewModel by viewModels()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ object LCAppUtils {
return if (nativeLibs?.any { it.name == "libflutter.so" } == true || PackageUtils.hasDexClass(
source,
"io.flutter.FlutterInjector"
)) {
)
) {
ruleEntity
} else {
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ class SnapshotViewModel(application: Application) : AndroidViewModel(application
val allTrackItems = repository.getTrackItems()

suspend fun compare(dbItem: SnapshotItem, packageInfo: PackageInfo, versionCode: Long) {
if (versionCode != dbItem.versionCode || packageInfo.lastUpdateTime != dbItem.lastUpdatedTime
|| (dbItem.packageSize != 0L && PackageUtils.getPackageSize(packageInfo, true) != dbItem.packageSize)
|| allTrackItems.any { trackItem -> trackItem.packageName == dbItem.packageName }
if (versionCode != dbItem.versionCode ||
packageInfo.lastUpdateTime != dbItem.lastUpdatedTime ||
(dbItem.packageSize != 0L && PackageUtils.getPackageSize(packageInfo, true) != dbItem.packageSize) ||
allTrackItems.any { trackItem -> trackItem.packageName == dbItem.packageName }
) {
snapshotDiffItem = SnapshotDiffItem(
packageName = packageInfo.packageName,
Expand Down

0 comments on commit b027f3b

Please sign in to comment.