mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-29 09:33:04 +00:00
android: remove debugging logs
This commit is contained in:
@@ -499,10 +499,6 @@ fun Main() {
|
||||
navController.addOnDestinationChangedListener { _, destination, _ ->
|
||||
showBackButton.value =
|
||||
destination.route != "settings" // && destination.route != "onboarding"
|
||||
Log.d(
|
||||
"MainActivity",
|
||||
"Navigated to ${destination.route}, showBackButton: ${showBackButton.value}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,11 +57,9 @@ class FOSSBillingProvider(context: Context): BillingProvider {
|
||||
purchaseJob?.cancel()
|
||||
|
||||
purchaseJob = scope.launch {
|
||||
delay(2_000)
|
||||
withContext(Dispatchers.Main) {
|
||||
_isPremium.value = true
|
||||
sharedPreferences.edit { putBoolean("foss_upgraded", true) }
|
||||
}
|
||||
delay(5_000)
|
||||
_isPremium.value = true
|
||||
sharedPreferences.edit { putBoolean("foss_upgraded", true) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.IntentFilter
|
||||
import android.content.SharedPreferences
|
||||
import android.util.Log
|
||||
import androidx.core.content.edit
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
@@ -171,14 +170,11 @@ class AirPodsViewModel(
|
||||
return@collect
|
||||
}
|
||||
if (!premium) {
|
||||
Log.d("AirPodsViewModel", "we are not premium")
|
||||
setControlCommandBoolean(
|
||||
ControlCommandIdentifiers.CONVERSATION_DETECT_CONFIG,
|
||||
false
|
||||
)
|
||||
setHeadGesturesEnabled(false)
|
||||
} else {
|
||||
Log.d("AirPodsViewModel", "we are premium")
|
||||
}
|
||||
_uiState.update { it.copy(isPremium = premium) }
|
||||
}
|
||||
@@ -365,7 +361,6 @@ class AirPodsViewModel(
|
||||
fun setOffListeningMode(enabled: Boolean) {
|
||||
sharedPreferences.edit { putBoolean("off_listening_mode", enabled) }
|
||||
setControlCommandBoolean(ControlCommandIdentifiers.ALLOW_OFF_OPTION, enabled)
|
||||
Log.d("AirPodsViewModel", "Hello???? $enabled")
|
||||
_uiState.update {
|
||||
it.copy(offListeningMode = enabled)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user