From 7461f7dfb7b8f0da66c21a3e532b58c67c7d9010 Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Fri, 24 Apr 2026 00:46:09 +0530 Subject: [PATCH] android: remove debugging logs --- .../main/java/me/kavishdevar/librepods/MainActivity.kt | 4 ---- .../kavishdevar/librepods/billing/FOSSBillingProvider.kt | 8 +++----- .../librepods/presentation/viewmodel/AirPodsViewModel.kt | 5 ----- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt b/android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt index a59f622..d3b058d 100644 --- a/android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt +++ b/android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt @@ -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}" - ) } } diff --git a/android/app/src/main/java/me/kavishdevar/librepods/billing/FOSSBillingProvider.kt b/android/app/src/main/java/me/kavishdevar/librepods/billing/FOSSBillingProvider.kt index 4aef636..11c8417 100644 --- a/android/app/src/main/java/me/kavishdevar/librepods/billing/FOSSBillingProvider.kt +++ b/android/app/src/main/java/me/kavishdevar/librepods/billing/FOSSBillingProvider.kt @@ -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) } } } diff --git a/android/app/src/main/java/me/kavishdevar/librepods/presentation/viewmodel/AirPodsViewModel.kt b/android/app/src/main/java/me/kavishdevar/librepods/presentation/viewmodel/AirPodsViewModel.kt index adc527a..3d41110 100644 --- a/android/app/src/main/java/me/kavishdevar/librepods/presentation/viewmodel/AirPodsViewModel.kt +++ b/android/app/src/main/java/me/kavishdevar/librepods/presentation/viewmodel/AirPodsViewModel.kt @@ -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) }