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
abcdabba
Commit
abcdabba
authored
Jul 14, 2025
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决掩码手机号[发送短信]跳转短信应用界面为掩码
parent
9033da9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ThreadActivity.kt
...main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
+5
-6
No files found.
app/src/main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
View file @
abcdabba
...
...
@@ -137,10 +137,10 @@ class ThreadActivity : SimpleActivity() {
}
threadId
=
intent
.
getLongExtra
(
THREAD_ID
,
0L
)
intent
.
getStringExtra
(
THREAD_TITLE
)
?.
let
{
/*
intent.getStringExtra(THREAD_TITLE)?.let {
binding.threadToolbar.title = it
android.util.Log.d(TAG, " OnCreate title = $it")
}
}
*/
isRecycleBin
=
intent
.
getBooleanExtra
(
IS_RECYCLE_BIN
,
false
)
wasProtectionHandled
=
intent
.
getBooleanExtra
(
WAS_PROTECTION_HANDLED
,
false
)
...
...
@@ -429,21 +429,20 @@ class ThreadActivity : SimpleActivity() {
private
fun
setupThreadTitle
()
{
// Log.d(TAG,"--ThreadActivity--setupThreadTitle-- conversation:${Gson().toJson(conversation)} binding.threadToolbar.title = ${binding.threadToolbar.title}")
// if(binding.threadToolbar.title.isNotEmpty()) return
val
title
=
conversation
?.
title
val
title
=
intent
.
getStringExtra
(
THREAD_TITLE
)
?:
""
binding
.
threadToolbar
.
title
=
if
(!
title
.
isNullOrEmpty
())
{
// Log.d(TAG,"--ThreadActivity--setupThreadTitle---1 THREAD_NUMBER:$title")
// "$title ${conversation?.phoneNumber}"
title
}
else
{
val
title
=
intent
.
getStringExtra
(
THREAD_TITLE
)
?:
""
val
title
=
conversation
?.
title
if
(!
title
.
isNullOrEmpty
()){
binding
.
threadToolbar
.
title
=
title
return
}
// Log.d(TAG,"--ThreadActivity--setupThreadTitle---2 THREAD_NUMBER:${intent.getStringExtra(THREAD_NUMBER)}")
// Log.d(TAG,"--ThreadActivity--setupThreadTitle---2 THREAD_NUMBER:${intent.getStringExtra(THREAD_NUMBER)}
title = $title
")
val
phoneNUmber
=
intent
.
getStringExtra
(
THREAD_NUMBER
)
/*phoneNUmber?.let {
binding.threadToolbar.title =it.replace(" ","")
...
...
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