Merge pull request #1732 from Hafizzle/Fixes#1723

Fixes#1723 Dailies streak title and streak text change
This commit is contained in:
Phillip Thelen 2022-03-28 18:13:18 +02:00 committed by GitHub
commit 24dbbc8bc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -160,6 +160,7 @@
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputLayout
style="@style/TextInputLayoutAppearance"
android:id="@+id/habit_adjust_positive_input_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/positive_habit_form"

View file

@ -325,9 +325,11 @@ class TaskFormActivity : BaseActivity() {
binding.adjustStreakTitleView.visibility = habitDailyVisibility
binding.adjustStreakWrapper.visibility = habitDailyVisibility
if (taskType == TaskType.HABIT) {
binding.habitAdjustPositiveStreakView.hint = getString(R.string.positive_habit_form)
binding.habitAdjustPositiveInputLayout.hint = getString(R.string.positive_habit_form)
binding.adjustStreakTitleView.text = getString(R.string.adjust_counter)
} else {
binding.habitAdjustPositiveStreakView.hint = getString(R.string.streak)
binding.habitAdjustPositiveInputLayout.hint = getString(R.string.streak)
binding.adjustStreakTitleView.text = getString(R.string.adjust_streak)
}
val todoDailyViewsVisibility = if (taskType == TaskType.DAILY || taskType == TaskType.TODO) View.VISIBLE else View.GONE