Skip to content

Commit 7461f7d

Browse files
committed
android: remove debugging logs
1 parent 904c00a commit 7461f7d

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,6 @@ fun Main() {
499499
navController.addOnDestinationChangedListener { _, destination, _ ->
500500
showBackButton.value =
501501
destination.route != "settings" // && destination.route != "onboarding"
502-
Log.d(
503-
"MainActivity",
504-
"Navigated to ${destination.route}, showBackButton: ${showBackButton.value}"
505-
)
506502
}
507503
}
508504

android/app/src/main/java/me/kavishdevar/librepods/billing/FOSSBillingProvider.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ class FOSSBillingProvider(context: Context): BillingProvider {
5757
purchaseJob?.cancel()
5858

5959
purchaseJob = scope.launch {
60-
delay(2_000)
61-
withContext(Dispatchers.Main) {
62-
_isPremium.value = true
63-
sharedPreferences.edit { putBoolean("foss_upgraded", true) }
64-
}
60+
delay(5_000)
61+
_isPremium.value = true
62+
sharedPreferences.edit { putBoolean("foss_upgraded", true) }
6563
}
6664
}
6765

android/app/src/main/java/me/kavishdevar/librepods/presentation/viewmodel/AirPodsViewModel.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import android.content.Context
2323
import android.content.Intent
2424
import android.content.IntentFilter
2525
import android.content.SharedPreferences
26-
import android.util.Log
2726
import androidx.core.content.edit
2827
import androidx.lifecycle.ViewModel
2928
import androidx.lifecycle.viewModelScope
@@ -171,14 +170,11 @@ class AirPodsViewModel(
171170
return@collect
172171
}
173172
if (!premium) {
174-
Log.d("AirPodsViewModel", "we are not premium")
175173
setControlCommandBoolean(
176174
ControlCommandIdentifiers.CONVERSATION_DETECT_CONFIG,
177175
false
178176
)
179177
setHeadGesturesEnabled(false)
180-
} else {
181-
Log.d("AirPodsViewModel", "we are premium")
182178
}
183179
_uiState.update { it.copy(isPremium = premium) }
184180
}
@@ -365,7 +361,6 @@ class AirPodsViewModel(
365361
fun setOffListeningMode(enabled: Boolean) {
366362
sharedPreferences.edit { putBoolean("off_listening_mode", enabled) }
367363
setControlCommandBoolean(ControlCommandIdentifiers.ALLOW_OFF_OPTION, enabled)
368-
Log.d("AirPodsViewModel", "Hello???? $enabled")
369364
_uiState.update {
370365
it.copy(offListeningMode = enabled)
371366
}

0 commit comments

Comments
 (0)