Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Aug 13, 2024
1 parent f2b03e7 commit 7ec34e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/MmkvManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ object MmkvManager {
subscriptions.add(Pair(key, Gson().fromJson(json, SubscriptionItem::class.java)))
}
}
subscriptions.sortedBy { (_, value) -> value.addedTime }
return subscriptions
return subscriptions.sortedBy { (_, value) -> value.addedTime }
}

fun removeSubscription(subid: String) {
Expand All @@ -155,8 +154,7 @@ object MmkvManager {
assetUrlItems.add(Pair(key, Gson().fromJson(json, AssetUrlItem::class.java)))
}
}
assetUrlItems.sortedBy { (_, value) -> value.addedTime }
return assetUrlItems
return assetUrlItems.sortedBy { (_, value) -> value.addedTime }
}

fun removeAssetUrl(assetid: String) {
Expand Down

0 comments on commit 7ec34e9

Please sign in to comment.