File tree Expand file tree Collapse file tree
android/app/src/main/java/me/kavishdevar/librepods Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import android.content.Context
2323import android.content.Intent
2424import android.content.IntentFilter
2525import android.content.SharedPreferences
26- import android.util.Log
2726import androidx.core.content.edit
2827import androidx.lifecycle.ViewModel
2928import 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 }
You can’t perform that action at this time.
0 commit comments