From bfaad6f94c9664feb74540be6af62691495f3f99 Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Wed, 27 Sep 2023 14:57:20 +0300 Subject: [PATCH] Change create to configure --- .../auth/feature/workspace/ConfigureWorkspaceFragment.kt | 8 ++++---- auth/src/main/res/layout/fragment_configure_workspace.xml | 4 ++-- auth/src/main/res/values/strings.xml | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/auth/src/main/java/org/futo/circles/auth/feature/workspace/ConfigureWorkspaceFragment.kt b/auth/src/main/java/org/futo/circles/auth/feature/workspace/ConfigureWorkspaceFragment.kt index b6d644e60..071bc2ba0 100644 --- a/auth/src/main/java/org/futo/circles/auth/feature/workspace/ConfigureWorkspaceFragment.kt +++ b/auth/src/main/java/org/futo/circles/auth/feature/workspace/ConfigureWorkspaceFragment.kt @@ -51,14 +51,14 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac toolbar.title = getString(if (shouldValidate) R.string.validating_workspace else R.string.configure_workspace) - if (shouldValidate) startLoading(btbCreate) + if (shouldValidate) startLoading(btbConfigure) rvWorkspaceTasks.apply { adapter = tasksAdapter addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL)) } - btbCreate.setOnClickListener { - startLoading(btbCreate) + btbConfigure.setOnClickListener { + startLoading(btbConfigure) viewModel.createWorkspace() } } @@ -77,7 +77,7 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac }, error = { showError(it) - binding.btbCreate.setText(getString(R.string.retry)) + binding.btbConfigure.setText(getString(R.string.retry)) }) viewModel.validateWorkspaceResultLiveData.observeResponse(this, success = { configureWorkspaceListener?.onWorkspaceConfigured() }, diff --git a/auth/src/main/res/layout/fragment_configure_workspace.xml b/auth/src/main/res/layout/fragment_configure_workspace.xml index 254874400..d364732ad 100644 --- a/auth/src/main/res/layout/fragment_configure_workspace.xml +++ b/auth/src/main/res/layout/fragment_configure_workspace.xml @@ -65,13 +65,13 @@ app:layout_constraintStart_toStartOf="parent" /> <org.futo.circles.core.view.LoadingButton - android:id="@+id/btbCreate" + android:id="@+id/btbConfigure" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginHorizontal="36dp" android:layout_marginBottom="16dp" - android:text="@string/create" + android:text="@string/configure" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> diff --git a/auth/src/main/res/values/strings.xml b/auth/src/main/res/values/strings.xml index fb60af93c..d8fbe8644 100644 --- a/auth/src/main/res/values/strings.xml +++ b/auth/src/main/res/values/strings.xml @@ -153,6 +153,7 @@ Or, think about all of your friends across all of the places you\'ve ever lived. <br/><br/>Everyone in the group posts to the same timeline, and everyone in the group can see every post. <br/><br/>For example, you might want to create a group for your book club, or your sports team, or your scout troop. <br/><br/>If you want to share with lots of different people who <i>don\'t</i> all know each other, then you should invite those people to follow you in a <b>Circle</b> instead.]]></string> + <string name="configure">Configure</string> <plurals name="days"> <item quantity="one">%1$d day</item> -- GitLab