You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val hazeStateS =remember { mutableStateOf(HazeState()) } // dont question this. i could possibly use something other than initializing it with an empty state and then replacing it with the the one provided by the scaffold
101
101
102
102
StyledScaffold(
103
103
title = stringResource(R.string.hearing_aid),
@@ -112,7 +112,7 @@ fun HearingAidScreen(navController: NavController) {
112
112
.padding(horizontal =16.dp),
113
113
verticalArrangement =Arrangement.spacedBy(8.dp)
114
114
) {
115
-
hazeStateS = hazeState
115
+
hazeStateS.value= hazeState
116
116
Spacer(modifier =Modifier.height(spacerHeight))
117
117
118
118
val hearingAidListener = remember {
@@ -288,7 +288,7 @@ fun HearingAidScreen(navController: NavController) {
Copy file name to clipboardExpand all lines: android/app/src/main/java/me/kavishdevar/librepods/screens/TroubleshootingScreen.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ fun TroubleshootingScreen(navController: NavController) {
193
193
LaunchedEffect(currentStep) {
194
194
instructionText =when (currentStep) {
195
195
0->"First, let's ensure Xposed module is properly configured. Tap the button below to check Xposed scope settings."
196
-
1->"Please put your AirPods in the case and close it, so they disconnect completely."
196
+
1->"Please put your AirPods in the case and close it, so they disconnectForCD completely."
197
197
2->"Preparing to collect logs... Please wait."
198
198
3->"Now, open the AirPods case and connect your AirPods. Logs are being collected. Connection will be detected automatically, or you can manually stop logging when you're done."
199
199
4->"Log collection complete! You can now save or share the logs."
Log.d(TAG, "Device is already connected locally, checking if we should keep audio connected")
2144
+
if (ServiceManager.getService()?.socket?.isConnected ==true) ServiceManager.getService()?.manuallyCheckForAudioSource() elseLog.d(TAG, "We're not connected, ignoring")
2142
2145
return
2143
2146
}
2144
2147
if (BluetoothDevice.ACTION_ACL_CONNECTED== action) {
@@ -2175,14 +2178,14 @@ class AirPodsService : Service(), SharedPreferences.OnSharedPreferenceChangeList
2175
2178
returnSTART_STICKY
2176
2179
}
2177
2180
2178
-
privatelateinitvar socket:BluetoothSocket
2179
-
2180
2181
funmanuallyCheckForAudioSource() {
2181
-
val shouldResume =MediaController.getMusicActive()
val shouldResume =MediaController.getMusicActive() // todo: for some reason we lose this info after disconnecting, probably android dispatches some event. haven't investigated yet.
"For some reason, Android connected to the audio profile itself even after disconnecting. Disconnecting audio profile again!"
2188
+
"For some reason, Android connected to the audio profile itself even after disconnecting. Disconnecting audio profile again! I will resume: $shouldResume"
0 commit comments