Skip to content

Commit

Permalink
feat: [ANDROAPP-5739] remove unused import, reduce index to 14 for tr…
Browse files Browse the repository at this point in the history
…immed key text
  • Loading branch information
xavimolloy committed Jun 17, 2024
1 parent 762588d commit a72f43a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ import org.hisp.dhis.mobile.ui.designsystem.theme.DHIS2SCustomTextStyles
import org.hisp.dhis.mobile.ui.designsystem.theme.InternalSizeValues
import org.hisp.dhis.mobile.ui.designsystem.theme.Radius
import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing
import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing16
import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing4
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor
import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor
Expand Down Expand Up @@ -560,7 +559,7 @@ fun measureTextWidth(text: String, textMeasurer: TextMeasurer): Dp {

@Composable
fun getKeyTrimmedText(text: String, maxKeyWidth: Dp, textMeasurer: TextMeasurer): String {
var lastCharIndex = 18
var lastCharIndex = 14
var trimmedText = remember { text.substring(IntRange(0, lastCharIndex)) }
var newKeyWidth = measureTextWidth(trimmedText, textMeasurer)

Expand Down

0 comments on commit a72f43a

Please sign in to comment.