修复SIM图标显示问题

pull/67/head
pppscn 4 years ago
parent c7d1858800
commit ee3b355e19

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

@ -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);

Loading…
Cancel
Save