Skip to content

Commit cea09b2

Browse files
committed
android: remove stray eq config in accessibility settings
1 parent 02edb51 commit cea09b2

File tree

1 file changed

+137
-137
lines changed

1 file changed

+137
-137
lines changed

android/app/src/main/java/me/kavishdevar/librepods/screens/AccessibilitySettingsScreen.kt

Lines changed: 137 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -431,143 +431,143 @@ fun AccessibilitySettingsScreen(navController: NavController) {
431431
}
432432

433433
if (!hearingAidEnabled.value&& isSdpOffsetAvailable.value) {
434-
Text(
435-
text = stringResource(R.string.apply_eq_to),
436-
style = TextStyle(
437-
fontSize = 14.sp,
438-
fontWeight = FontWeight.Bold,
439-
color = textColor.copy(alpha = 0.6f),
440-
fontFamily = FontFamily(Font(R.font.sf_pro))
441-
),
442-
modifier = Modifier.padding(8.dp, bottom = 0.dp)
443-
)
444-
Column(
445-
modifier = Modifier
446-
.fillMaxWidth()
447-
.background(backgroundColor, RoundedCornerShape(28.dp))
448-
.padding(vertical = 0.dp)
449-
) {
450-
val darkModeLocal = isSystemInDarkTheme()
451-
452-
val phoneShape = RoundedCornerShape(topStart = 28.dp, topEnd = 28.dp)
453-
var phoneBackgroundColor by remember {
454-
mutableStateOf(
455-
if (darkModeLocal) Color(
456-
0xFF1C1C1E
457-
) else Color(0xFFFFFFFF)
458-
)
459-
}
460-
val phoneAnimatedBackgroundColor by animateColorAsState(
461-
targetValue = phoneBackgroundColor,
462-
animationSpec = tween(durationMillis = 500)
463-
)
464-
465-
Row(
466-
modifier = Modifier
467-
.height(48.dp)
468-
.fillMaxWidth()
469-
.background(phoneAnimatedBackgroundColor, phoneShape)
470-
.pointerInput(Unit) {
471-
detectTapGestures(
472-
onPress = {
473-
phoneBackgroundColor =
474-
if (darkModeLocal) Color(0x40888888) else Color(0x40D9D9D9)
475-
tryAwaitRelease()
476-
phoneBackgroundColor =
477-
if (darkModeLocal) Color(0xFF1C1C1E) else Color(0xFFFFFFFF)
478-
phoneEQEnabled.value = !phoneEQEnabled.value
479-
}
480-
)
481-
}
482-
.padding(horizontal = 16.dp),
483-
verticalAlignment = Alignment.CenterVertically
484-
) {
485-
Text(
486-
stringResource(R.string.phone),
487-
fontSize = 16.sp,
488-
color = textColor,
489-
fontFamily = FontFamily(Font(R.font.sf_pro)),
490-
modifier = Modifier.weight(1f)
491-
)
492-
Checkbox(
493-
checked = phoneEQEnabled.value,
494-
onCheckedChange = { phoneEQEnabled.value = it },
495-
colors = CheckboxDefaults.colors().copy(
496-
checkedCheckmarkColor = Color(0xFF007AFF),
497-
uncheckedCheckmarkColor = Color.Transparent,
498-
checkedBoxColor = Color.Transparent,
499-
uncheckedBoxColor = Color.Transparent,
500-
checkedBorderColor = Color.Transparent,
501-
uncheckedBorderColor = Color.Transparent
502-
),
503-
modifier = Modifier
504-
.height(24.dp)
505-
.scale(1.5f)
506-
)
507-
}
508-
509-
HorizontalDivider(
510-
thickness = 1.dp,
511-
color = Color(0x40888888)
512-
)
513-
514-
val mediaShape = RoundedCornerShape(bottomStart = 28.dp, bottomEnd = 28.dp)
515-
var mediaBackgroundColor by remember {
516-
mutableStateOf(
517-
if (darkModeLocal) Color(
518-
0xFF1C1C1E
519-
) else Color(0xFFFFFFFF)
520-
)
521-
}
522-
val mediaAnimatedBackgroundColor by animateColorAsState(
523-
targetValue = mediaBackgroundColor,
524-
animationSpec = tween(durationMillis = 500)
525-
)
526-
527-
Row(
528-
modifier = Modifier
529-
.height(48.dp)
530-
.fillMaxWidth()
531-
.background(mediaAnimatedBackgroundColor, mediaShape)
532-
.pointerInput(Unit) {
533-
detectTapGestures(
534-
onPress = {
535-
mediaBackgroundColor =
536-
if (darkModeLocal) Color(0x40888888) else Color(0x40D9D9D9)
537-
tryAwaitRelease()
538-
mediaBackgroundColor =
539-
if (darkModeLocal) Color(0xFF1C1C1E) else Color(0xFFFFFFFF)
540-
mediaEQEnabled.value = !mediaEQEnabled.value
541-
}
542-
)
543-
}
544-
.padding(horizontal = 16.dp),
545-
verticalAlignment = Alignment.CenterVertically
546-
) {
547-
Text(
548-
stringResource(R.string.media),
549-
fontSize = 16.sp,
550-
color = textColor,
551-
fontFamily = FontFamily(Font(R.font.sf_pro)),
552-
modifier = Modifier.weight(1f)
553-
)
554-
Checkbox(
555-
checked = mediaEQEnabled.value,
556-
onCheckedChange = { mediaEQEnabled.value = it },
557-
colors = CheckboxDefaults.colors().copy(
558-
checkedCheckmarkColor = Color(0xFF007AFF),
559-
uncheckedCheckmarkColor = Color.Transparent,
560-
checkedBoxColor = Color.Transparent,
561-
uncheckedBoxColor = Color.Transparent,
562-
checkedBorderColor = Color.Transparent,
563-
uncheckedBorderColor = Color.Transparent
564-
),
565-
modifier = Modifier
566-
.height(24.dp)
567-
.scale(1.5f)
568-
)
569-
}
570-
}
434+
// Text(
435+
// text = stringResource(R.string.apply_eq_to),
436+
// style = TextStyle(
437+
// fontSize = 14.sp,
438+
// fontWeight = FontWeight.Bold,
439+
// color = textColor.copy(alpha = 0.6f),
440+
// fontFamily = FontFamily(Font(R.font.sf_pro))
441+
// ),
442+
// modifier = Modifier.padding(8.dp, bottom = 0.dp)
443+
// )
444+
// Column(
445+
// modifier = Modifier
446+
// .fillMaxWidth()
447+
// .background(backgroundColor, RoundedCornerShape(28.dp))
448+
// .padding(vertical = 0.dp)
449+
// ) {
450+
// val darkModeLocal = isSystemInDarkTheme()
451+
//
452+
// val phoneShape = RoundedCornerShape(topStart = 28.dp, topEnd = 28.dp)
453+
// var phoneBackgroundColor by remember {
454+
// mutableStateOf(
455+
// if (darkModeLocal) Color(
456+
// 0xFF1C1C1E
457+
// ) else Color(0xFFFFFFFF)
458+
// )
459+
// }
460+
// val phoneAnimatedBackgroundColor by animateColorAsState(
461+
// targetValue = phoneBackgroundColor,
462+
// animationSpec = tween(durationMillis = 500)
463+
// )
464+
//
465+
// Row(
466+
// modifier = Modifier
467+
// .height(48.dp)
468+
// .fillMaxWidth()
469+
// .background(phoneAnimatedBackgroundColor, phoneShape)
470+
// .pointerInput(Unit) {
471+
// detectTapGestures(
472+
// onPress = {
473+
// phoneBackgroundColor =
474+
// if (darkModeLocal) Color(0x40888888) else Color(0x40D9D9D9)
475+
// tryAwaitRelease()
476+
// phoneBackgroundColor =
477+
// if (darkModeLocal) Color(0xFF1C1C1E) else Color(0xFFFFFFFF)
478+
// phoneEQEnabled.value = !phoneEQEnabled.value
479+
// }
480+
// )
481+
// }
482+
// .padding(horizontal = 16.dp),
483+
// verticalAlignment = Alignment.CenterVertically
484+
// ) {
485+
// Text(
486+
// stringResource(R.string.phone),
487+
// fontSize = 16.sp,
488+
// color = textColor,
489+
// fontFamily = FontFamily(Font(R.font.sf_pro)),
490+
// modifier = Modifier.weight(1f)
491+
// )
492+
// Checkbox(
493+
// checked = phoneEQEnabled.value,
494+
// onCheckedChange = { phoneEQEnabled.value = it },
495+
// colors = CheckboxDefaults.colors().copy(
496+
// checkedCheckmarkColor = Color(0xFF007AFF),
497+
// uncheckedCheckmarkColor = Color.Transparent,
498+
// checkedBoxColor = Color.Transparent,
499+
// uncheckedBoxColor = Color.Transparent,
500+
// checkedBorderColor = Color.Transparent,
501+
// uncheckedBorderColor = Color.Transparent
502+
// ),
503+
// modifier = Modifier
504+
// .height(24.dp)
505+
// .scale(1.5f)
506+
// )
507+
// }
508+
//
509+
// HorizontalDivider(
510+
// thickness = 1.dp,
511+
// color = Color(0x40888888)
512+
// )
513+
//
514+
// val mediaShape = RoundedCornerShape(bottomStart = 28.dp, bottomEnd = 28.dp)
515+
// var mediaBackgroundColor by remember {
516+
// mutableStateOf(
517+
// if (darkModeLocal) Color(
518+
// 0xFF1C1C1E
519+
// ) else Color(0xFFFFFFFF)
520+
// )
521+
// }
522+
// val mediaAnimatedBackgroundColor by animateColorAsState(
523+
// targetValue = mediaBackgroundColor,
524+
// animationSpec = tween(durationMillis = 500)
525+
// )
526+
//
527+
// Row(
528+
// modifier = Modifier
529+
// .height(48.dp)
530+
// .fillMaxWidth()
531+
// .background(mediaAnimatedBackgroundColor, mediaShape)
532+
// .pointerInput(Unit) {
533+
// detectTapGestures(
534+
// onPress = {
535+
// mediaBackgroundColor =
536+
// if (darkModeLocal) Color(0x40888888) else Color(0x40D9D9D9)
537+
// tryAwaitRelease()
538+
// mediaBackgroundColor =
539+
// if (darkModeLocal) Color(0xFF1C1C1E) else Color(0xFFFFFFFF)
540+
// mediaEQEnabled.value = !mediaEQEnabled.value
541+
// }
542+
// )
543+
// }
544+
// .padding(horizontal = 16.dp),
545+
// verticalAlignment = Alignment.CenterVertically
546+
// ) {
547+
// Text(
548+
// stringResource(R.string.media),
549+
// fontSize = 16.sp,
550+
// color = textColor,
551+
// fontFamily = FontFamily(Font(R.font.sf_pro)),
552+
// modifier = Modifier.weight(1f)
553+
// )
554+
// Checkbox(
555+
// checked = mediaEQEnabled.value,
556+
// onCheckedChange = { mediaEQEnabled.value = it },
557+
// colors = CheckboxDefaults.colors().copy(
558+
// checkedCheckmarkColor = Color(0xFF007AFF),
559+
// uncheckedCheckmarkColor = Color.Transparent,
560+
// checkedBoxColor = Color.Transparent,
561+
// uncheckedBoxColor = Color.Transparent,
562+
// checkedBorderColor = Color.Transparent,
563+
// uncheckedBorderColor = Color.Transparent
564+
// ),
565+
// modifier = Modifier
566+
// .height(24.dp)
567+
// .scale(1.5f)
568+
// )
569+
// }
570+
// }
571571

572572
// EQ Settings. Don't seem to have an effect?
573573
// Column(

0 commit comments

Comments
 (0)