Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
2f3a8468
Commit
2f3a8468
authored
3 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
data transfer: stop if no intent
Change-Id: I55c70c31c48f9d70b01aac317121deb72820220e
parent
d8e026d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/app/src/main/java/cx/ring/services/DataTransferService.kt
+6
-1
6 additions, 1 deletion
...app/src/main/java/cx/ring/services/DataTransferService.kt
with
6 additions
and
1 deletion
ring-android/app/src/main/java/cx/ring/services/DataTransferService.kt
+
6
−
1
View file @
2f3a8468
...
...
@@ -37,12 +37,17 @@ class DataTransferService : Service() {
@Inject
lateinit
var
mNotificationService
:
NotificationService
private
lateinit
var
notificationManager
:
NotificationManagerCompat
private
var
started
=
false
private
var
serviceNotificationId
=
0
private
val
serviceNotifications
:
MutableSet
<
Int
>
=
HashSet
()
override
fun
onStartCommand
(
intent
:
Intent
,
flags
:
Int
,
startId
:
Int
):
Int
{
override
fun
onStartCommand
(
intent
:
Intent
?,
flags
:
Int
,
startId
:
Int
):
Int
{
if
(
intent
==
null
)
{
stopSelfResult
(
startId
)
return
START_NOT_STICKY
}
val
notificationId
=
intent
.
getIntExtra
(
NotificationService
.
KEY_NOTIFICATION_ID
,
-
1
)
val
action
=
intent
.
action
if
(
ACTION_START
==
action
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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