Skip to content

Commit

Permalink
Added hint text on "Set due date" dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Giyutomioka-SS authored and lukstbit committed Apr 23, 2024
1 parent 6a122dc commit 41346ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ class SetDueDateDialog : DialogFragment() {
suffixText = resources.getQuantityString(R.plurals.set_due_date_label_suffix, currentValue ?: 0)
}
suffixText = resources.getQuantityString(R.plurals.set_due_date_label_suffix, 0)
helperText = getString(
R.string.set_due_date_hintText,
resources.getQuantityString(R.plurals.set_due_date_label_suffix, 0), // 0 days
resources.getQuantityString(R.plurals.set_due_date_label_suffix, 1) // 1 day
)
}
}
view.findViewById<TextView>(R.id.date_single_label).text =
Expand Down
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/layout/set_due_date_single.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
app:layout_constraintStart_toStartOf="@+id/date_single_label"
app:layout_constraintTop_toBottomOf="@+id/date_single_label"
app:expandedHintEnabled="false"
tools:helperText="Today is ‘0 days’, tomorrow is ‘1 day’, etc…">
tools:suffixText="days">

<com.google.android.material.textfield.TextInputEditText
Expand Down
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/07-cardbrowser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<string name="card_browser_search_all_decks">Search all decks</string>
<string name="card_browser_unknown_deck_name">Unknown</string>
<string name="card_browser_truncate" comment="allows users to show less of a field value">Truncate content</string>
<string name="set_due_date_hintText" comment="plural set_due_date_label_suffix is used for parameters, parameter 1 is the plural for 0, parameter 2 is the plural for 1">Today is ‘0 %1$s’, tomorrow is ‘1 %2$s’, etc…</string>
<plurals name="card_browser_export_cards">
<item quantity="one">Export card</item>
<item quantity="other">Export cards</item>
Expand Down

0 comments on commit 41346ee

Please sign in to comment.