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
ca073136
Commit
ca073136
authored
Nov 11, 2024
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:去除发送界面菜单栏选项
parent
d43091d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ThreadActivity.kt
...main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
+8
-8
activity_thread.xml
app/src/main/res/layout/activity_thread.xml
+1
-0
No files found.
app/src/main/kotlin/com/secspace/sms/activities/ThreadActivity.kt
View file @
ca073136
...
...
@@ -250,16 +250,16 @@ class ThreadActivity : SimpleActivity() {
val
archiveAvailable
=
config
.
isArchiveAvailable
binding
.
threadToolbar
.
menu
.
apply
{
findItem
(
R
.
id
.
delete
).
isVisible
=
threadItems
.
isNotEmpty
()
findItem
(
R
.
id
.
restore
).
isVisible
=
threadItems
.
isNotEmpty
()
&&
isRecycleBin
findItem
(
R
.
id
.
archive
).
isVisible
=
threadItems
.
isNotEmpty
()
&&
conversation
?.
isArchived
==
false
&&
!
isRecycleBin
&&
archiveAvailabl
e
findItem
(
R
.
id
.
unarchive
).
isVisible
=
threadItems
.
isNotEmpty
()
&&
conversation
?.
isArchived
==
true
&&
!
isRecycleBin
&&
archiveAvailabl
e
findItem
(
R
.
id
.
restore
).
isVisible
=
/*threadItems.isNotEmpty() && isRecycleBin*/
false
findItem
(
R
.
id
.
archive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == false && !isRecycleBin && archiveAvailable*/
fals
e
findItem
(
R
.
id
.
unarchive
).
isVisible
=
/*threadItems.isNotEmpty() && conversation?.isArchived == true && !isRecycleBin && archiveAvailable*/
fals
e
findItem
(
R
.
id
.
rename_conversation
).
isVisible
=
participants
.
size
>
1
&&
conversation
!=
null
&&
!
isRecycleBin
findItem
(
R
.
id
.
conversation_details
).
isVisible
=
conversation
!=
null
&&
!
isRecycleBin
findItem
(
R
.
id
.
block_number
).
title
=
addLockedLabelIfNeeded
(
com
.
simplemobiletools
.
commons
.
R
.
string
.
block_number
)
findItem
(
R
.
id
.
block_number
).
isVisible
=
isNougatPlus
()
&&
!
isRecycleBin
findItem
(
R
.
id
.
dial_number
).
isVisible
=
participants
.
size
==
1
&&
!
isSpecialNumber
()
&&
!
isRecycleBin
findItem
(
R
.
id
.
manage_people
).
isVisible
=
!
isSpecialNumber
()
&&
!
isRecycleBin
findItem
(
R
.
id
.
mark_as_unread
).
isVisible
=
threadItems
.
isNotEmpty
()
&&
!
isRecycleBin
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
.
dial_number
).
isVisible
=
/*participants.size == 1 && !isSpecialNumber() && !isRecycleBin*/
false
findItem
(
R
.
id
.
manage_people
).
isVisible
=
/*!isSpecialNumber() && !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
findItem
(
R
.
id
.
add_number_to_contact
).
isVisible
=
participants
.
size
==
1
&&
participants
.
first
().
name
==
firstPhoneNumber
&&
firstPhoneNumber
.
any
{
...
...
app/src/main/res/layout/activity_thread.xml
View file @
ca073136
...
...
@@ -150,6 +150,7 @@
layout=
"@layout/layout_thread_send_message_holder"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
...
...
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