Skip to content

Commit

Permalink
Merge pull request #1 from ikvarxt/main
Browse files Browse the repository at this point in the history
Fix line break issue on Android Add Feed page
  • Loading branch information
prof18 authored Aug 1, 2023
2 parents 5e9f06c + a15e591 commit 3139043
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.widget.Toast
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.Button
Expand All @@ -23,6 +24,9 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.input.KeyboardCapitalization
import androidx.compose.ui.text.input.KeyboardType
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.prof18.feedflow.MR
import com.prof18.feedflow.presentation.AddFeedViewModel
Expand Down Expand Up @@ -142,6 +146,11 @@ private fun FeedNameTextField(
label = {
Text(text = stringResource(resource = MR.strings.feed_name))
},
keyboardOptions = KeyboardOptions(
imeAction = ImeAction.Next,
keyboardType = KeyboardType.Text,
capitalization = KeyboardCapitalization.Sentences,
),
value = feedName,
onValueChange = {
onFeedNameUpdated(it)
Expand All @@ -167,6 +176,11 @@ private fun FeedUrlTextField(
label = {
Text(text = stringResource(resource = MR.strings.feed_url))
},
keyboardOptions = KeyboardOptions(
imeAction = ImeAction.Done,
keyboardType = KeyboardType.Uri,
autoCorrect = false,
),
value = feedUrl,
onValueChange = {
onFeedUrlUpdated(it)
Expand Down

0 comments on commit 3139043

Please sign in to comment.