fix(lyrics): краш при открытии текста — Unspecified lineHeight
bodyLarge.lineHeight не задан (Unspecified), умножение на 1.4f бросало IllegalArgumentException (Cannot perform operation for Unspecified type). Задан конкретный lineHeight = 22.sp.
This commit is contained in:
@@ -8,6 +8,7 @@ import androidx.compose.runtime.*
|
|||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
|
import androidx.compose.ui.unit.sp
|
||||||
import androidx.hilt.navigation.compose.hiltViewModel
|
import androidx.hilt.navigation.compose.hiltViewModel
|
||||||
import com.radiola.ui.theme.RadiolaTheme
|
import com.radiola.ui.theme.RadiolaTheme
|
||||||
|
|
||||||
@@ -85,7 +86,7 @@ fun LyricsSheet(
|
|||||||
text = line.ifEmpty { " " },
|
text = line.ifEmpty { " " },
|
||||||
style = MaterialTheme.typography.bodyLarge,
|
style = MaterialTheme.typography.bodyLarge,
|
||||||
color = colors.textPrimary,
|
color = colors.textPrimary,
|
||||||
lineHeight = MaterialTheme.typography.bodyLarge.lineHeight * 1.4f
|
lineHeight = 22.sp
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user