Skip to content

Commit

Permalink
Drop text description
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Apr 4, 2024
1 parent e4d791f commit 294988d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandIn
import androidx.compose.animation.expandVertically
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.material3.SnackbarDuration
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.FolderOpen
import androidx.compose.material.icons.filled.Link
import androidx.compose.material.icons.rounded.Warning
Expand Down Expand Up @@ -228,8 +227,7 @@ private fun ColumnScope.SubscribeToUrl(
verifying,
onSubmit,
error,
labelText = stringResource(R.string.add_calendar_pick_url_label),
description = stringResource(R.string.add_calendar_pick_url_text),
labelText = stringResource(R.string.add_calendar_pick_url_label)
)
AnimatedVisibility(
visible = isInsecure,
Expand Down Expand Up @@ -275,7 +273,6 @@ private fun ColumnScope.SubscribeToFile(
onSubmit,
error,
stringResource(R.string.add_calendar_pick_file),
stringResource(R.string.add_calendar_pick_file_text),
readOnly = true,
onPickFileRequested
)
Expand All @@ -289,15 +286,9 @@ private fun ColumnScope.ResourceInput(
onSubmit: () -> Unit,
error: String?,
labelText: String,
description: String,
readOnly: Boolean = false,
onClick: () -> Unit = {}
) {
Text(
text = description,
style = MaterialTheme.typography.bodyLarge,
modifier = Modifier.fillMaxWidth()
)
TextField(
value = uri ?: "",
onValueChange = onUriChange,
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@
<string name="add_calendar_title_hint">Calendar name</string>
<string name="add_calendar_pick_color">Pick color</string>
<string name="add_calendar_pick_url_label">Webcal address</string>
<string name="add_calendar_pick_url_text">Enter a Webcal address.</string>
<string name="add_calendar_pick_file_label">File path</string>
<string name="add_calendar_pick_file_text">Select a file from local storage.</string>
<string name="add_calendar_url_sample" translatable="false">https://example.com/webcal.ics</string>
<string name="add_calendar_pick_file">Pick file</string>
<string name="add_calendar_user_name">User name</string>
Expand Down

0 comments on commit 294988d

Please sign in to comment.