Remove unused code.
This commit is contained in:
parent
ccde7c9f81
commit
9b81b7ea19
1 changed files with 0 additions and 33 deletions
|
@ -70,7 +70,6 @@ class TrackerService: Service()
|
||||||
|
|
||||||
private lateinit var notificationManager: NotificationManager
|
private lateinit var notificationManager: NotificationManager
|
||||||
private lateinit var notification_builder: NotificationCompat.Builder
|
private lateinit var notification_builder: NotificationCompat.Builder
|
||||||
val beeper = ToneGenerator(AudioManager.STREAM_MUSIC, 100)
|
|
||||||
|
|
||||||
private lateinit var locationManager: LocationManager
|
private lateinit var locationManager: LocationManager
|
||||||
private lateinit var gpsLocationListener: LocationListener
|
private lateinit var gpsLocationListener: LocationListener
|
||||||
|
@ -245,8 +244,6 @@ class TrackerService: Service()
|
||||||
{
|
{
|
||||||
Log.i("VOUSSOIR", "Processing point ${location.time} ${location.latitude}, ${location.longitude}.")
|
Log.i("VOUSSOIR", "Processing point ${location.time} ${location.latitude}, ${location.longitude}.")
|
||||||
|
|
||||||
// beeper.startTone(ToneGenerator.TONE_PROP_ACK, 150)
|
|
||||||
|
|
||||||
if (location.time <= currentBestLocation.time)
|
if (location.time <= currentBestLocation.time)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
|
@ -441,36 +438,6 @@ class TrackerService: Service()
|
||||||
notificationManager.createNotificationChannel(notificationChannel)
|
notificationManager.createNotificationChannel(notificationChannel)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Notification pending intents */
|
|
||||||
// private val stopActionPendingIntent = PendingIntent.getService(
|
|
||||||
// this,
|
|
||||||
// 14,
|
|
||||||
// Intent(this, TrackerService::class.java).setAction(Keys.ACTION_STOP),
|
|
||||||
// PendingIntent.FLAG_IMMUTABLE
|
|
||||||
// )
|
|
||||||
// private val resumeActionPendingIntent = PendingIntent.getService(
|
|
||||||
// this,
|
|
||||||
// 16,
|
|
||||||
// Intent(this, TrackerService::class.java).setAction(Keys.ACTION_START),
|
|
||||||
// PendingIntent.FLAG_IMMUTABLE
|
|
||||||
// )
|
|
||||||
/* Notification actions */
|
|
||||||
// private val stopAction = NotificationCompat.Action(
|
|
||||||
// R.drawable.ic_notification_action_stop_24dp,
|
|
||||||
// this.getString(R.string.notification_pause),
|
|
||||||
// stopActionPendingIntent
|
|
||||||
// )
|
|
||||||
// private val resumeAction = NotificationCompat.Action(
|
|
||||||
// R.drawable.ic_notification_action_resume_36dp,
|
|
||||||
// this.getString(R.string.notification_resume),
|
|
||||||
// resumeActionPendingIntent
|
|
||||||
// )
|
|
||||||
// private val showAction = NotificationCompat.Action(
|
|
||||||
// R.drawable.ic_notification_action_show_36dp,
|
|
||||||
// this.getString(R.string.notification_show),
|
|
||||||
// showActionPendingIntent
|
|
||||||
// )
|
|
||||||
|
|
||||||
/* Overrides onBind from Service */
|
/* Overrides onBind from Service */
|
||||||
override fun onBind(p0: Intent?): IBinder
|
override fun onBind(p0: Intent?): IBinder
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue