aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt16
1 files changed, 0 insertions, 16 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
index aee7e51..fefb67e 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
@@ -17,17 +17,13 @@
*/
package mx.trackermap.TrackerMap.android.shared
-import android.app.NotificationManager
-import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.util.Log
import android.view.View
import androidx.appcompat.widget.PopupMenu
-import androidx.core.app.NotificationCompat
import androidx.core.app.ShareCompat
import androidx.core.content.FileProvider
-import com.google.firebase.messaging.FirebaseMessagingService
import mx.trackermap.TrackerMap.android.R
import mx.trackermap.TrackerMap.client.models.MapLayer
import java.io.BufferedOutputStream
@@ -98,17 +94,5 @@ class Utils {
return cacheFile
}
-
- fun showNotification(context: Context, id: Int, body: String?, pendingIntent: PendingIntent) {
- val builder = NotificationCompat.Builder(context, context.getString(R.string.notification_channel_id))
- .setSmallIcon(R.drawable.icon_notify)
- .setContentTitle(context.getString(R.string.app_name))
- .setContentText(body)
- .setAutoCancel(true)
- .setContentIntent(pendingIntent)
- (context.getSystemService(FirebaseMessagingService.NOTIFICATION_SERVICE)
- as NotificationManager)
- .notify(id, builder.build())
- }
}
} \ No newline at end of file