mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-07-13 14:52:12 -04:00
chore: fix build warnings and migrate deprecated APIs (#6130)
This commit is contained in:
@@ -1046,8 +1046,8 @@ private fun CacheInfoDialog(mapView: MapView, onDismiss: () -> Unit) {
|
||||
onDismiss = onDismiss,
|
||||
negativeButton = { TextButton(onClick = { onDismiss() }) { Text(text = stringResource(Res.string.close)) } },
|
||||
) {
|
||||
val capacityMb = (cacheCapacity / (1024 * 1024)).toLong()
|
||||
val usageMb = (currentCacheUsage / (1024 * 1024)).toLong()
|
||||
val capacityMb = cacheCapacity / (1024 * 1024)
|
||||
val usageMb = currentCacheUsage / (1024 * 1024)
|
||||
Text(modifier = Modifier.padding(16.dp), text = stringResource(Res.string.map_cache_info, capacityMb, usageMb))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1230,6 +1230,7 @@ private fun offsetPolyline(
|
||||
|
||||
// region --- Map Layers ---
|
||||
|
||||
@OptIn(MapsComposeExperimentalApi::class)
|
||||
@Composable
|
||||
private fun MapLayerOverlay(layerItem: MapLayerItem, mapViewModel: MapViewModel) {
|
||||
val context = LocalContext.current
|
||||
|
||||
@@ -19,8 +19,7 @@ package org.meshtastic.app.map.model
|
||||
class CustomTileSource {
|
||||
|
||||
companion object {
|
||||
fun getTileSource(index: Int) {
|
||||
index
|
||||
}
|
||||
// No-op stub for the Google flavor (osmdroid tile sources are fdroid-only).
|
||||
fun getTileSource(index: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ import kotlin.test.Test
|
||||
|
||||
class KoinVerificationTest {
|
||||
|
||||
@OptIn(org.koin.core.annotation.KoinExperimentalAPI::class)
|
||||
@Test
|
||||
fun verifyKoinConfiguration() {
|
||||
AppKoinModule()
|
||||
|
||||
Reference in New Issue
Block a user