mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Only display sim card info on incoming SMS when multiple SIMs
// FREEBIE
This commit is contained in:
parent
b69c109d6b
commit
3a5a7cac73
@ -334,10 +334,11 @@ public class ConversationItem extends LinearLayout
|
||||
}
|
||||
|
||||
private void setSimInfo(MessageRecord messageRecord) {
|
||||
if (messageRecord.getSubscriptionId() == -1) {
|
||||
SubscriptionManagerCompat subscriptionManager = new SubscriptionManagerCompat(context);
|
||||
|
||||
if (messageRecord.getSubscriptionId() == -1 || subscriptionManager.getActiveSubscriptionInfoList().size() < 2) {
|
||||
simInfoText.setVisibility(View.GONE);
|
||||
} else {
|
||||
SubscriptionManagerCompat subscriptionManager = new SubscriptionManagerCompat(context);
|
||||
Optional<SubscriptionInfoCompat> subscriptionInfo = subscriptionManager.getActiveSubscriptionInfo(messageRecord.getSubscriptionId());
|
||||
|
||||
if (subscriptionInfo.isPresent() && messageRecord.isOutgoing()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user