Skip to content

Commit

Permalink
fix: Recent apps sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
axel358 committed Jan 18, 2024
1 parent f260454 commit d5d0f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/cu/axel/smartdock/utils/AppUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ object AppUtils {
val usageStats = usm.queryUsageStats(UsageStatsManager.INTERVAL_BEST, start,
System.currentTimeMillis())
val appTasks = ArrayList<AppTask>()
usageStats.sortWith { usageStats1: UsageStats, usageStats2: UsageStats -> usageStats1.lastTimeUsed.compareTo(usageStats2.lastTimeUsed) }
usageStats.sortWith { usageStats1: UsageStats, usageStats2: UsageStats -> usageStats2.lastTimeUsed.compareTo(usageStats1.lastTimeUsed) }
for (stat in usageStats) {
val app = stat.packageName
try {
Expand Down

0 comments on commit d5d0f6a

Please sign in to comment.