修复SIM图标显示问题

This commit is contained in:
pppscn 2021-03-03 10:00:52 +08:00
parent c7d1858800
commit ee3b355e19
2 changed files with 4 additions and 9 deletions

View File

@ -68,15 +68,11 @@ public class LogVo {
}
public int getSimImageId() {
if (this.simInfo == null) {
return R.mipmap.sim1;
if (this.simInfo != null && !this.simInfo.isEmpty()
&& this.simInfo.replace("-", "").substring(0, 4).equals("SIM2")) {
return R.mipmap.sim2;
}
String sim = this.simInfo.replace("-", "").substring(0, 4).toLowerCase();
if (sim == "sim2") {
return R.mipmap.sim2;
} else {
return R.mipmap.sim1;
}
return R.mipmap.sim1;
}
}

View File

@ -160,7 +160,6 @@ public class LogUtil {
Integer senderType = cursor.getInt(
cursor.getColumnIndexOrThrow(SenderTable.SenderEntry.COLUMN_NAME_TYPE));
Log.d(TAG, "getLog: time" + time);
String rule = RuleModel.getRuleMatch(ruleFiled, ruleCheck, ruleValue) + senderName;
int senderImageId = SenderModel.getImageId(senderType);