android: remove debugging logs

This commit is contained in:
Kavish Devar
2026-04-24 00:46:09 +05:30
parent 904c00afce
commit 7461f7dfb7
3 changed files with 3 additions and 14 deletions

View File

@@ -499,10 +499,6 @@ fun Main() {
navController.addOnDestinationChangedListener { _, destination, _ -> navController.addOnDestinationChangedListener { _, destination, _ ->
showBackButton.value = showBackButton.value =
destination.route != "settings" // && destination.route != "onboarding" destination.route != "settings" // && destination.route != "onboarding"
Log.d(
"MainActivity",
"Navigated to ${destination.route}, showBackButton: ${showBackButton.value}"
)
} }
} }

View File

@@ -57,11 +57,9 @@ class FOSSBillingProvider(context: Context): BillingProvider {
purchaseJob?.cancel() purchaseJob?.cancel()
purchaseJob = scope.launch { purchaseJob = scope.launch {
delay(2_000) delay(5_000)
withContext(Dispatchers.Main) { _isPremium.value = true
_isPremium.value = true sharedPreferences.edit { putBoolean("foss_upgraded", true) }
sharedPreferences.edit { putBoolean("foss_upgraded", true) }
}
} }
} }

View File

@@ -23,7 +23,6 @@ import android.content.Context
import android.content.Intent import android.content.Intent
import android.content.IntentFilter import android.content.IntentFilter
import android.content.SharedPreferences import android.content.SharedPreferences
import android.util.Log
import androidx.core.content.edit import androidx.core.content.edit
import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope import androidx.lifecycle.viewModelScope
@@ -171,14 +170,11 @@ class AirPodsViewModel(
return@collect return@collect
} }
if (!premium) { if (!premium) {
Log.d("AirPodsViewModel", "we are not premium")
setControlCommandBoolean( setControlCommandBoolean(
ControlCommandIdentifiers.CONVERSATION_DETECT_CONFIG, ControlCommandIdentifiers.CONVERSATION_DETECT_CONFIG,
false false
) )
setHeadGesturesEnabled(false) setHeadGesturesEnabled(false)
} else {
Log.d("AirPodsViewModel", "we are premium")
} }
_uiState.update { it.copy(isPremium = premium) } _uiState.update { it.copy(isPremium = premium) }
} }
@@ -365,7 +361,6 @@ class AirPodsViewModel(
fun setOffListeningMode(enabled: Boolean) { fun setOffListeningMode(enabled: Boolean) {
sharedPreferences.edit { putBoolean("off_listening_mode", enabled) } sharedPreferences.edit { putBoolean("off_listening_mode", enabled) }
setControlCommandBoolean(ControlCommandIdentifiers.ALLOW_OFF_OPTION, enabled) setControlCommandBoolean(ControlCommandIdentifiers.ALLOW_OFF_OPTION, enabled)
Log.d("AirPodsViewModel", "Hello???? $enabled")
_uiState.update { _uiState.update {
it.copy(offListeningMode = enabled) it.copy(offListeningMode = enabled)
} }