Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SzobatárSCH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fodor Patrik
SzobatárSCH
Commits
cda184eb
Commit
cda184eb
authored
May 22, 2022
by
Fodor Patrik
Browse files
Options
Downloads
Patches
Plain Diff
Use values
parent
0b6e0fd3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/hu/bme/kszk/szobatarsch/composable/Profile.kt
+6
-78
6 additions, 78 deletions
...c/main/java/hu/bme/kszk/szobatarsch/composable/Profile.kt
with
6 additions
and
78 deletions
app/src/main/java/hu/bme/kszk/szobatarsch/composable/Profile.kt
+
6
−
78
View file @
cda184eb
...
...
@@ -3,19 +3,17 @@ package hu.bme.kszk.szobatarsch.composable
import
androidx.compose.foundation.layout.*
import
androidx.compose.foundation.rememberScrollState
import
androidx.compose.foundation.verticalScroll
import
androidx.compose.material.icons.Icons
import
androidx.compose.material.icons.filled.*
import
androidx.compose.material3.Button
import
androidx.compose.material3.Text
import
androidx.compose.runtime.*
import
androidx.compose.ui.Alignment
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.unit.dp
import
hu.bme.kszk.szobatarsch.data.*
import
hu.bme.kszk.szobatarsch.firebase.Preferences
import
hu.bme.kszk.szobatarsch.firebase.User
import
hu.bme.kszk.szobatarsch.firebase.userData
as
currentUser
import
hu.bme.kszk.szobatarsch.firebase.registerOrOverwriteUser
import
hu.bme.kszk.szobatarsch.firebaseUser
import
kotlinx.coroutines.launch
...
...
@@ -73,18 +71,7 @@ fun Profile(isEditable: Boolean = false) {
steps
=
8
,
valueRange
=
0f
..
9f
,
label
=
"Lefekszem kb"
,
textValues
=
listOf
(
"20 órakor"
,
"21 órakor"
,
"22 órakor"
,
"23 órakor"
,
"00 órakor"
,
"01 órakor"
,
"02 órakor"
,
"03 órakor"
,
"04 órakor"
,
"Később"
)
textValues
=
bedTimeList
)
MySlider
(
...
...
@@ -93,18 +80,7 @@ fun Profile(isEditable: Boolean = false) {
steps
=
8
,
valueRange
=
0f
..
9f
,
label
=
"Felkelek kb"
,
textValues
=
listOf
(
"5 órakor"
,
"6 órakor"
,
"7 órakor"
,
"8 órakor"
,
"9 órakor"
,
"10 órakor"
,
"11 órakor"
,
"12 órakor"
,
"13 órakor"
,
"Később"
)
textValues
=
wakeUpList
)
MySlider
(
...
...
@@ -113,13 +89,7 @@ fun Profile(isEditable: Boolean = false) {
steps
=
3
,
valueRange
=
0f
..
4f
,
label
=
"Takarítás gyakorisága"
,
textValues
=
listOf
(
"Ritkán"
,
"Néha"
,
"So-so"
,
"Gyakran"
,
"Nagyon gyakran"
)
textValues
=
cleaningList
)
MySlider
(
...
...
@@ -128,13 +98,7 @@ fun Profile(isEditable: Boolean = false) {
steps
=
3
,
valueRange
=
0f
..
4f
,
label
=
"Átlagos hangerő"
,
textValues
=
listOf
(
"Maga vagyok a csend"
,
"Néha hangos vagyok"
,
"Az esetek felében hangos vagyok"
,
"Gyakran vagyok hangos"
,
"Csak ordibálva beszélek és/vagy hangosan hallgatok zenét"
)
textValues
=
loudnessList
)
MySlider
(
...
...
@@ -143,13 +107,7 @@ fun Profile(isEditable: Boolean = false) {
steps
=
3
,
valueRange
=
0f
..
4f
,
label
=
"Ennyi cuccom van"
,
textValues
=
listOf
(
"Nincs"
,
"Egy bőrönd"
,
"Átlagos"
,
"Kicsit sok cuccom van"
,
"Még legalább egy családnak elég lenne"
,
)
textValues
=
storageSpaceList
)
MyLabelledCheckBox
(
...
...
@@ -255,33 +213,3 @@ private fun firebaseUserDataToProfileState(
profileState
.
ghost
.
value
=
user
.
value
.
preferences
.
ghost
}
object
GenderDropDownItems
{
val
DropDownItems
=
listOf
(
DropDownItem
(
title
=
"Male"
,
image
=
Icons
.
Default
.
Male
,
),
DropDownItem
(
title
=
"Female"
,
image
=
Icons
.
Default
.
Female
,
),
)
}
object
MajorDropDownItems
{
val
DropDownItems
=
listOf
(
DropDownItem
(
title
=
"Mérnökinformatikus"
,
image
=
Icons
.
Default
.
Computer
,
),
DropDownItem
(
title
=
"Villamos mérnök"
,
image
=
Icons
.
Default
.
Bolt
,
),
DropDownItem
(
title
=
"Épitész"
,
image
=
Icons
.
Default
.
Architecture
,
),
)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment