Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-android
Commits
8a1d88c4
Commit
8a1d88c4
authored
6 months ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Prevent file transfer notification being still displayed after all transfer have ended
parent
5a787222
master
feature/show_unsecure_conversation_event_at_top
feature/use_theme_main_color_for_icon_and_splashscreen
fix/insistent_notification
fix/telecom_default_audio_endpoint
release/6.0
6.1.0-alpha
6.0.0
6.0.0-beta
1 merge request
!1497
Prevent file transfer notification being still displayed after all transfer have ended
Pipeline
#82472
passed with stage
in 5 minutes and 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/org/linphone/core/CoreFileTransferService.kt
+5
-3
...rc/main/java/org/linphone/core/CoreFileTransferService.kt
with
5 additions
and
3 deletions
app/src/main/java/org/linphone/core/CoreFileTransferService.kt
+
5
−
3
View file @
8a1d88c4
...
...
@@ -121,6 +121,10 @@ class CoreFileTransferService : FileTransferService() {
Log
.
i
(
"$TAG [$downloadingFilesCount] file(s) being downloaded, [$uploadingFilesCount] file(s) being uploaded"
)
if
(
downloadingFilesCount
==
0
&&
uploadingFilesCount
==
0
)
{
Log
.
i
(
"$TAG No more files being transferred, do not alter the notification"
)
return
}
val
downloadText
=
resources
.
getQuantityString
(
R
.
plurals
.
notification_file_transfer_download
,
...
...
@@ -141,10 +145,8 @@ class CoreFileTransferService : FileTransferService() {
)
}
else
if
(
downloadingFilesCount
>
0
)
{
downloadText
}
else
if
(
uploadingFilesCount
>
0
)
{
uploadText
}
else
{
getString
(
R
.
string
.
notification_file_transfer_startup_message
)
uploadText
}
mServiceNotification
=
builder
.
setContentText
(
message
).
build
()
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets