mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Merge pull request #1732 from Hafizzle/Fixes#1723
Fixes#1723 Dailies streak title and streak text change
This commit is contained in:
commit
24dbbc8bc2
2 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue