[Settings] Fine tune log output and code comments

Adjusted log output and code comments.

Bug: 195090132
Bug: 195091953
Test: local
Change-Id: I37ccd641c313e1ffafa600fffe7ca7eaf287db88
This commit is contained in:
Bonian Chen
2021-08-05 09:32:47 +08:00
parent 1ed3c39e2f
commit 8db6e5ac5e
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ public class SubscriptionAnnotation {
public String toString() {
return TAG + "{" + "subId=" + getSubscriptionId()
+ ",type=" + getType()
+ ",type=" + getType() + ",exist=" + isExisted()
+ ",active=" + isActive() + ",displayAllow=" + isDisplayAllowed()
+ "}";
}

View File

@@ -93,7 +93,7 @@ public class SubscriptionGrouping
annoSelector = annoSelector
// eSIM in front of pSIM
.thenComparingInt(anno -> -anno.getType())
// maintain the ordering within from list given
// maintain the ordering given within constructor
.thenComparingInt(anno -> annoList.indexOf(anno));
return annoList.stream().sorted(annoSelector).findFirst().orElse(null);
}