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
0098d5c1
Commit
0098d5c1
authored
Nov 18, 2024
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去除添加联系人功能
parent
15c56e83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ThreadActivity.kt
...main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
+3
-3
ContactsAdapter.kt
.../main/kotlin/com/secspace/sms/adapters/ContactsAdapter.kt
+1
-1
No files found.
app/src/main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
View file @
0098d5c1
...
@@ -253,7 +253,7 @@ class ThreadActivity : SimpleActivity() {
...
@@ -253,7 +253,7 @@ class ThreadActivity : SimpleActivity() {
findItem
(
R
.
id
.
restore
).
isVisible
=
/*threadItems.isNotEmpty() && isRecycleBin*/
false
findItem
(
R
.
id
.
restore
).
isVisible
=
/*threadItems.isNotEmpty() && isRecycleBin*/
false
findItem
(
R
.
id
.
archive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == false && !isRecycleBin && archiveAvailable*/
false
findItem
(
R
.
id
.
archive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == false && !isRecycleBin && archiveAvailable*/
false
findItem
(
R
.
id
.
unarchive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == true && !isRecycleBin && archiveAvailable*/
false
findItem
(
R
.
id
.
unarchive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == true && !isRecycleBin && archiveAvailable*/
false
findItem
(
R
.
id
.
rename_conversation
).
isVisible
=
participants
.
size
>
1
&&
conversation
!=
null
&&
!
isRecycleBin
findItem
(
R
.
id
.
rename_conversation
).
isVisible
=
/*participants.size > 1 && conversation != null && !isRecycleBin*/
false
findItem
(
R
.
id
.
conversation_details
).
isVisible
=
/*conversation != null && !isRecycleBin*/
false
findItem
(
R
.
id
.
conversation_details
).
isVisible
=
/*conversation != null && !isRecycleBin*/
false
findItem
(
R
.
id
.
block_number
).
title
=
/*addLockedLabelIfNeeded(com.simplemobiletools.commons.R.string.block_number)*/
""
findItem
(
R
.
id
.
block_number
).
title
=
/*addLockedLabelIfNeeded(com.simplemobiletools.commons.R.string.block_number)*/
""
findItem
(
R
.
id
.
block_number
).
isVisible
=
/*isNougatPlus() && !isRecycleBin*/
false
findItem
(
R
.
id
.
block_number
).
isVisible
=
/*isNougatPlus() && !isRecycleBin*/
false
...
@@ -262,9 +262,9 @@ class ThreadActivity : SimpleActivity() {
...
@@ -262,9 +262,9 @@ class ThreadActivity : SimpleActivity() {
findItem
(
R
.
id
.
mark_as_unread
).
isVisible
=
/*threadItems.isNotEmpty() && !isRecycleBin*/
false
findItem
(
R
.
id
.
mark_as_unread
).
isVisible
=
/*threadItems.isNotEmpty() && !isRecycleBin*/
false
// allow saving number in cases when we dont have it stored yet and it is a casual readable number
// allow saving number in cases when we dont have it stored yet and it is a casual readable number
findItem
(
R
.
id
.
add_number_to_contact
).
isVisible
=
participants
.
size
==
1
&&
participants
.
first
().
name
==
firstPhoneNumber
&&
firstPhoneNumber
.
any
{
findItem
(
R
.
id
.
add_number_to_contact
).
isVisible
=
/*
participants.size == 1 && participants.first().name == firstPhoneNumber && firstPhoneNumber.any {
it.isDigit()
it.isDigit()
}
&&
!
isRecycleBin
} && !isRecycleBin
*/
false
}
}
}
}
...
...
app/src/main/kotlin/com/secspace/sms/adapters/ContactsAdapter.kt
View file @
0098d5c1
...
@@ -15,7 +15,7 @@ import com.simplemobiletools.commons.models.SimpleContact
...
@@ -15,7 +15,7 @@ import com.simplemobiletools.commons.models.SimpleContact
import
com.simplemobiletools.commons.views.MyRecyclerView
import
com.simplemobiletools.commons.views.MyRecyclerView
class
ContactsAdapter
(
class
ContactsAdapter
(
activity
:
SimpleActivity
,
var
contacts
:
ArrayList
<
SimpleContact
>,
recyclerView
:
MyRecyclerView
,
itemClick
:
(
Any
)
->
Unit
activity
:
SimpleActivity
,
private
var
contacts
:
ArrayList
<
SimpleContact
>,
recyclerView
:
MyRecyclerView
,
itemClick
:
(
Any
)
->
Unit
)
:
MyRecyclerViewAdapter
(
activity
,
recyclerView
,
itemClick
)
{
)
:
MyRecyclerViewAdapter
(
activity
,
recyclerView
,
itemClick
)
{
private
var
fontSize
=
activity
.
getTextSize
()
private
var
fontSize
=
activity
.
getTextSize
()
...
...
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