forked from github/wulkanowy-mirror
Change titles in Student Info (#1121)
This commit is contained in:
parent
022a4d1ea2
commit
53c798ebdb
@ -38,7 +38,15 @@ class StudentInfoFragment :
|
||||
lateinit var studentInfoAdapter: StudentInfoAdapter
|
||||
|
||||
override val titleStringId: Int
|
||||
get() = R.string.student_info_title
|
||||
get() = when (requireArguments().getSerializable(INFO_TYPE_ARGUMENT_KEY) as? StudentInfoView.Type) {
|
||||
StudentInfoView.Type.PERSONAL -> R.string.account_personal_data
|
||||
StudentInfoView.Type.CONTACT -> R.string.account_contact
|
||||
StudentInfoView.Type.ADDRESS -> R.string.account_address
|
||||
StudentInfoView.Type.FAMILY -> R.string.account_family
|
||||
StudentInfoView.Type.SECOND_GUARDIAN -> R.string.student_info_guardian
|
||||
StudentInfoView.Type.FIRST_GUARDIAN -> R.string.student_info_guardian
|
||||
else -> R.string.student_info_title
|
||||
}
|
||||
|
||||
override val isViewEmpty get() = studentInfoAdapter.items.isEmpty()
|
||||
|
||||
|
@ -424,6 +424,7 @@
|
||||
<string name="student_info_male">Male</string>
|
||||
<string name="student_info_female">Female</string>
|
||||
<string name="student_info_last_name">Last name</string>
|
||||
<string name="student_info_guardian">Guardian</string>
|
||||
|
||||
|
||||
<!--Account edit-->
|
||||
|
Loading…
Reference in New Issue
Block a user