mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-17 21:25:31 +00:00
修复SIM图标显示问题
This commit is contained in:
parent
c7d1858800
commit
ee3b355e19
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user