Skip to content

Commit

Permalink
lint: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yueban committed Aug 29, 2024
1 parent b4e5a08 commit 71ee5ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private fun SettingsSubScreenLayout(
val newPreference = it.copy(value = value)
onUpdate(newPreference)
focusedPreference = newPreference
}
},
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fun SettingsCategoryLabel(
Text(
text = stringResource(id = preference.nameStringResource),
style = MaterialTheme.typography.titleSmall,
modifier = modifier.fillMaxWidth()
modifier = modifier.fillMaxWidth(),
)
}

Expand All @@ -28,7 +28,7 @@ fun SettingsCategoryLabel(
private fun SettingsLabelPreview() {
FindroidTheme {
SettingsCategoryLabel(
preference = PreferenceCategoryLabel(nameStringResource = CoreR.string.mpv_player)
preference = PreferenceCategoryLabel(nameStringResource = CoreR.string.mpv_player),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun SettingsDetailsLongCard(
) {
Text(
text = stringResource(id = preference.nameStringResource),
style = MaterialTheme.typography.headlineMedium
style = MaterialTheme.typography.headlineMedium,
)
preference.descriptionStringRes?.let {
Spacer(modifier = Modifier.height(MaterialTheme.spacings.small))
Expand All @@ -64,7 +64,7 @@ fun SettingsDetailsLongCard(
}
},
singleLine = true,
modifier = Modifier.fillMaxWidth()
modifier = Modifier.fillMaxWidth(),
)
Spacer(modifier = Modifier.height(MaterialTheme.spacings.medium))
Box {
Expand All @@ -85,7 +85,6 @@ fun SettingsDetailsLongCard(
}
}
}

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ constructor(
enabled = preference.dependencies.all { getBoolean(it, false) },
value = getString(
preference.backendName,
preference.backendDefaultValue.toString()
)!!.toLongOrNull() ?: preference.backendDefaultValue
preference.backendDefaultValue.toString(),
)!!.toLongOrNull() ?: preference.backendDefaultValue,
)
}
else -> preference
Expand Down

0 comments on commit 71ee5ba

Please sign in to comment.