aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-12-14 17:37:22 -0600
committerIván Ávalos <avalos@disroot.org>2022-12-14 17:37:22 -0600
commitfacf751f941a2f85d0ce236c4a61f21e84758199 (patch)
tree82c35a286310873b1d784c68e04ba69246cea830 /androidApp/src/main/java/mx/trackermap/TrackerMap/android
parentec157026deea7b72ff233a20c0ed40fa548f75d6 (diff)
downloadetbsa-trackermap-mobile-facf751f941a2f85d0ce236c4a61f21e84758199.tar.gz
etbsa-trackermap-mobile-facf751f941a2f85d0ce236c4a61f21e84758199.tar.bz2
etbsa-trackermap-mobile-facf751f941a2f85d0ce236c4a61f21e84758199.zip
Removed unused test modules
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android')
-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