Change titles in Student Info
MODIFY
app/src/main/java/io/github/wulkanowy/ui/modules/studentinfo/StudentInfoFragment.kt
app/src/main/java/io/github/wulkanowy/ui/modules/studentinfo/StudentInfoFragment.kt
@@ -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()

MODIFY
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
<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-->

Change titles in Student Info (#1121)