mirror of
https://github.com/vernu/textbee.git
synced 2026-03-03 02:27:00 +00:00
fix(android): fix android build issue
This commit is contained in:
@@ -160,7 +160,8 @@ public class TextBeeUtils {
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
int cardId = subscriptionInfo.getCardId();
|
||||
if (cardId != SubscriptionManager.INVALID_CARD_ID) {
|
||||
// INVALID_CARD_ID is -1, check for valid card ID (>= 0)
|
||||
if (cardId >= 0) {
|
||||
simInfo.setCardId(cardId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user