diff options
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt b/app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt index 1708243..916f19d 100644 --- a/app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt +++ b/app/src/main/java/org/pacien/tincapp/service/ConfigurationAccessService.kt | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon | 2 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon |
3 | * Copyright (C) 2017-2020 Pacien TRAN-GIRARD | 3 | * Copyright (C) 2017-2023 Pacien TRAN-GIRARD |
4 | * | 4 | * |
5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | package org.pacien.tincapp.service | 19 | package org.pacien.tincapp.service |
20 | 20 | ||
21 | import android.app.PendingIntent | ||
22 | import android.app.Service | 21 | import android.app.Service |
23 | import android.content.Context | 22 | import android.content.Context |
24 | import android.content.Intent | 23 | import android.content.Intent |
@@ -39,6 +38,7 @@ import org.pacien.tincapp.activities.configure.ConfigureActivity | |||
39 | import org.pacien.tincapp.context.App | 38 | import org.pacien.tincapp.context.App |
40 | import org.pacien.tincapp.context.AppNotificationManager | 39 | import org.pacien.tincapp.context.AppNotificationManager |
41 | import org.pacien.tincapp.extensions.Java.defaultMessage | 40 | import org.pacien.tincapp.extensions.Java.defaultMessage |
41 | import org.pacien.tincapp.utils.PendingIntentUtils | ||
42 | import org.slf4j.LoggerFactory | 42 | import org.slf4j.LoggerFactory |
43 | import java.io.IOException | 43 | import java.io.IOException |
44 | 44 | ||
@@ -125,7 +125,7 @@ class ConfigurationAccessService : Service() { | |||
125 | .setContentTitle(resources.getString(R.string.notification_config_access_server_running_title)) | 125 | .setContentTitle(resources.getString(R.string.notification_config_access_server_running_title)) |
126 | .setContentText(resources.getString(R.string.notification_config_access_server_running_message)) | 126 | .setContentText(resources.getString(R.string.notification_config_access_server_running_message)) |
127 | .setContentIntent(Intent(this, ConfigureActivity::class.java).let { | 127 | .setContentIntent(Intent(this, ConfigureActivity::class.java).let { |
128 | PendingIntent.getActivity(this, 0, it, 0) | 128 | PendingIntentUtils.getActivity(this, 0, it, 0) |
129 | }) | 129 | }) |
130 | .build() | 130 | .build() |
131 | ) | 131 | ) |