Skip to content

Commit

Permalink
AppState: use isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Dec 15, 2024
1 parent 9eada68 commit 43090b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/archos/mediacenter/utils/AppState.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class AppState {

public static boolean isForeGround() {
synchronized (sStartedActivities) {
log.debug("isForeGround=" + (sStartedActivities.size() > 0));
return sStartedActivities.size() > 0;
log.debug("isForeGround=" + (!sStartedActivities.isEmpty()));
return !sStartedActivities.isEmpty();
}
}

Expand Down

0 comments on commit 43090b9

Please sign in to comment.