mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
cars: a list of cars drivers have confirmed, linked from the README and the help screen
This commit is contained in:
1 parent
470ec2f093
commit
1086e7c8fa
4 files changed
+59
-2
No files matched your search
@@ -19,6 +19,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
internal object GearslipLinks {
|
||||
const val MATRIX = "https://matrix.to/#/!mf0_mgBd5KqKpc9FfX_wHp1jFCcwAtPrndIn_oGIyMk?via=matrix.org"
|
||||
const val SOURCE = "https://github.com/Seb3thehacker/gearslip"
|
||||
const val CARS = "$SOURCE/blob/main/CARS.md"
|
||||
|
||||
fun open(context: Context, url: String) {
|
||||
runCatching {
|
||||
|
||||
@@ -28,6 +28,7 @@ import androidx.compose.runtime.collectAsState
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
@@ -97,6 +98,7 @@ private val USB_AUDIO = listOf(
|
||||
fun HelpScreen(onBack: () -> Unit, onRequestCallScreening: () -> Unit) {
|
||||
val car = remember(onRequestCallScreening) { inTheCar(onRequestCallScreening) }
|
||||
val usb by CarSettings.pipeAudio.collectAsState()
|
||||
val context = LocalContext.current
|
||||
|
||||
Scaffold(
|
||||
containerColor = MaterialTheme.colorScheme.background,
|
||||
@@ -125,8 +127,12 @@ fun HelpScreen(onBack: () -> Unit, onRequestCallScreening: () -> Unit) {
|
||||
"Most cars work. Starting around 2020, some cars added newer security " +
|
||||
"standards that reject Gearslip's certificate, and Gearslip can't run in those cars.",
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
modifier = Modifier.padding(16.dp),
|
||||
modifier = Modifier.padding(start = 16.dp, end = 16.dp, top = 16.dp),
|
||||
)
|
||||
FilledTonalButton(
|
||||
onClick = { GearslipLinks.open(context, GearslipLinks.CARS) },
|
||||
modifier = Modifier.padding(16.dp),
|
||||
) { Text("See the full list") }
|
||||
}
|
||||
Steps("Before your first drive", FIRST_DRIVE)
|
||||
Steps("In the car", car)
|
||||
|
||||
Reference in new issue
Block a user