Removes logs

This commit is contained in:
Vitor Pamplona
2024-10-30 17:55:35 -04:00
parent ae530ed813
commit 060a242a0f
2 changed files with 3 additions and 8 deletions
@@ -567,15 +567,12 @@ class Account(
location: Location?, location: Location?,
): LiveFollowList? = ): LiveFollowList? =
if (listName == GLOBAL_FOLLOWS) { if (listName == GLOBAL_FOLLOWS) {
println("AABBCC combinePeopleList $listName Global $listName")
null null
} else if (listName == KIND3_FOLLOWS) { } else if (listName == KIND3_FOLLOWS) {
println("AABBCC combinePeopleList $listName Kind3 $kind3")
kind3 kind3
} else if (listName == AROUND_ME) { } else if (listName == AROUND_ME) {
val hash = location?.toGeoHash(com.vitorpamplona.amethyst.ui.actions.GeohashPrecision.KM_5_X_5.digits) val hash = location?.toGeoHash(com.vitorpamplona.amethyst.ui.actions.GeohashPrecision.KM_5_X_5.digits)
if (hash != null) { if (hash != null) {
println("AABBCC combinePeopleList AROUND ME Started $listName Kind3 $kind3")
// 2 neighbors deep = 25x25km // 2 neighbors deep = 25x25km
val hashes = val hashes =
listOf(hash.toString()) + listOf(hash.toString()) +
@@ -584,8 +581,6 @@ class Account(
.flatten() .flatten()
.distinct() .distinct()
println("AABBCC combinePeopleList AROUND ME Finished $listName Kind3 $kind3")
LiveFollowList( LiveFollowList(
authorsPlusMe = setOf(signer.pubKey), authorsPlusMe = setOf(signer.pubKey),
geotags = hashes.toSet(), geotags = hashes.toSet(),
@@ -595,7 +590,6 @@ class Account(
} }
} else { } else {
val peopleList = noteState.note.event as? GeneralListEvent val peopleList = noteState.note.event as? GeneralListEvent
println("AABBCC combinePeopleList $listName General List ${noteState.note.idHex}")
if (peopleList != null) { if (peopleList != null) {
waitToDecrypt(peopleList) ?: LiveFollowList(authorsPlusMe = setOf(signer.pubKey)) waitToDecrypt(peopleList) ?: LiveFollowList(authorsPlusMe = setOf(signer.pubKey))
} else { } else {
@@ -27,6 +27,7 @@ import android.location.Location
import android.location.LocationListener import android.location.LocationListener
import android.location.LocationManager import android.location.LocationManager
import android.os.Looper import android.os.Looper
import android.util.Log
import android.util.LruCache import android.util.LruCache
import com.fonfon.kgeohash.toGeoHash import com.fonfon.kgeohash.toGeoHash
import com.vitorpamplona.amethyst.service.LocationState.Companion.MIN_DISTANCE import com.vitorpamplona.amethyst.service.LocationState.Companion.MIN_DISTANCE
@@ -64,7 +65,7 @@ class LocationFlow(
override fun onProviderDisabled(provider: String) {} override fun onProviderDisabled(provider: String) {}
} }
println("AABBCC LocationState Start") Log.d("Location Service", "LocationState Start")
locationManager.requestLocationUpdates( locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER, LocationManager.NETWORK_PROVIDER,
minTimeMs, minTimeMs,
@@ -75,7 +76,7 @@ class LocationFlow(
awaitClose { awaitClose {
locationManager.removeUpdates(locationCallback) locationManager.removeUpdates(locationCallback)
println("AABBCC LocationState Stop") Log.d("Location Service", "LocationState Stop")
} }
} }
} }