clean comments

This commit is contained in:
p1gp1g
2020-12-09 10:29:02 +01:00
parent f627ed1d66
commit 2fdf5e8e78
2 changed files with 1 additions and 10 deletions

View File

@@ -14,15 +14,9 @@ import com.google.gson.Gson
* It is called from the thread in WebSocketService
*/
//TODO : delete the notification once delivered
//TODO: implement the URl change
// For the moment, re-registering the client is enough
/**
* Function to notify client
*/
fun notifyClient(context: Context, clientPackage: String, message: com.github.gotify.client.model.Message){
val db = MessagingDatabase(context)
val service = db.getServiceName(clientPackage)

View File

@@ -18,7 +18,6 @@ import kotlin.concurrent.thread
/**
* THIS SERVICE IS USED BY OTHER APPS TO REGISTER
*/
// TODO : in the app, implement forceUnregisterApp
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
class GotifyRegisterService : Service() {
@@ -79,7 +78,6 @@ class GotifyRegisterService : Service() {
Log.w("Trying to register an app without packageName")
return
}
//TODO Send a notification to let the user acknowledge the registering
Log.i("registering $clientPackageName uid: $clientUid")
// The app is registered with the same uid : we re-register it
// the client may need to create a new app in the server
@@ -94,7 +92,7 @@ class GotifyRegisterService : Service() {
Log.w("$clientPackageName already registered with a different uid")
return
}
//
val clientService = msg.getString("service").toString()
if (clientService.isBlank()) {
Log.w("Cannot find the service for $clientPackageName")
@@ -165,7 +163,6 @@ class GotifyRegisterService : Service() {
}
private fun deleteApp(appName: String){
//TODO Send a notification to let the user choosing if the app will be deleted or not
val client = ClientFactory.clientToken(settings.url(), settings.sslSettings(), settings.token())
try {
val appId = db.getAppId(appName)