Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Simple-Sms
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangchengbo
Simple-Sms
Commits
7e0cfcc7
Commit
7e0cfcc7
authored
Feb 11, 2026
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:优化Sim卡切换运营商提示
parent
387f1818
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
ThreadActivity.kt
...main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
+4
-1
VendorSelectUtil.kt
...src/main/kotlin/com/secspace/sms/util/VendorSelectUtil.kt
+16
-0
No files found.
app/src/main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
View file @
7e0cfcc7
...
...
@@ -56,6 +56,7 @@ import com.secspace.sms.extensions.*
import
com.secspace.sms.helpers.*
import
com.secspace.sms.messaging.*
import
com.secspace.sms.models.*
import
com.secspace.sms.util.VendorSelectUtil
import
com.simplemobiletools.commons.dialogs.ConfirmationDialog
import
com.simplemobiletools.commons.dialogs.PermissionRequiredDialog
import
com.simplemobiletools.commons.dialogs.RadioGroupDialog
...
...
@@ -924,7 +925,9 @@ class ThreadActivity : SimpleActivity() {
numbers
.
forEach
{
config
.
saveUseSIMIdAtNumber
(
it
,
currentSubscriptionId
)
}
toast
(
currentSIMCard
.
label
)
val
selectVendorResult
=
VendorSelectUtil
.
showSimCardOperator
(
currentSIMCard
.
label
)
Log
.
d
(
TAG
,
"setupSIMSelector: selectVendorResult = $selectVendorResult"
)
toast
(
"切换为卡${currentSIMCard.id} $selectVendorResult"
)
}
}
...
...
app/src/main/kotlin/com/secspace/sms/util/VendorSelectUtil.kt
0 → 100644
View file @
7e0cfcc7
package
com.secspace.sms.util
object
VendorSelectUtil
{
fun
showSimCardOperator
(
type
:
String
):
String
{
if
(
type
.
contains
(
"CMCC"
,
true
)
||
type
.
contains
(
"China Mobile"
,
true
)){
return
"中国移动"
}
else
if
(
type
.
contains
(
"China Unicom"
,
true
)){
return
"中国联通"
}
else
if
(
type
.
contains
(
"China Telecom"
,
true
)){
return
"中国电信"
}
return
""
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment