mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[UI/Settings] Fix hiding hiding sticks from old without devMode.
This commit is contained in:
parent
131606a6cf
commit
8b0f3490e3
@ -7,6 +7,7 @@ package pl.szczodrzynski.edziennik.ui.modules.settings.cards
|
|||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial
|
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial
|
||||||
import eu.szkolny.font.SzkolnyFont
|
import eu.szkolny.font.SzkolnyFont
|
||||||
|
import pl.szczodrzynski.edziennik.App
|
||||||
import pl.szczodrzynski.edziennik.R
|
import pl.szczodrzynski.edziennik.R
|
||||||
import pl.szczodrzynski.edziennik.after
|
import pl.szczodrzynski.edziennik.after
|
||||||
import pl.szczodrzynski.edziennik.data.api.LOGIN_TYPE_LIBRUS
|
import pl.szczodrzynski.edziennik.data.api.LOGIN_TYPE_LIBRUS
|
||||||
@ -141,6 +142,7 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
|||||||
else
|
else
|
||||||
null,
|
null,
|
||||||
|
|
||||||
|
if (App.devMode)
|
||||||
util.createPropertyItem(
|
util.createPropertyItem(
|
||||||
text = R.string.settings_register_hide_sticks_from_old,
|
text = R.string.settings_register_hide_sticks_from_old,
|
||||||
icon = CommunityMaterial.Icon3.cmd_numeric_1_box_outline,
|
icon = CommunityMaterial.Icon3.cmd_numeric_1_box_outline,
|
||||||
@ -148,5 +150,7 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
|||||||
) { _, it ->
|
) { _, it ->
|
||||||
configProfile.grades.hideSticksFromOld = it
|
configProfile.grades.hideSticksFromOld = it
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user