Second Commit:
Version 1.5 [Partialy Optimized Version] [UI Fixes And Improvment] Todo: Optimized the Code Add String Theolgy
This commit is contained in:
@ -74,7 +74,6 @@ class AlgoritmaKesehatan {
|
||||
fun getTaskBasedData(healthData: HealthData): List<Map<String, Any>> {
|
||||
val tasks = mutableListOf<Map<String, Any>>()
|
||||
|
||||
// Task for Blood Sugar Control
|
||||
when {
|
||||
healthData.bloodSugar > 140 -> {
|
||||
tasks.add(mapOf("task" to "Kurangi konsumsi makanan tinggi gula dan karbohidrat olahan.", "completed" to false))
|
||||
@ -91,7 +90,6 @@ class AlgoritmaKesehatan {
|
||||
}
|
||||
}
|
||||
|
||||
// Task for Blood Pressure Control
|
||||
when {
|
||||
healthData.systolicBP > 120 || healthData.diastolicBP > 80 -> {
|
||||
tasks.add(mapOf("task" to "Lakukan olahraga ringan seperti jalan kaki selama 30 menit.", "completed" to false))
|
||||
@ -107,7 +105,6 @@ class AlgoritmaKesehatan {
|
||||
}
|
||||
}
|
||||
|
||||
// Task for BMI Control
|
||||
when {
|
||||
healthData.BMI > 25 -> {
|
||||
tasks.add(mapOf("task" to "Lakukan olahraga rutin minimal 3 kali seminggu.", "completed" to false))
|
||||
|
@ -14,10 +14,10 @@
|
||||
android:background="@drawable/bg_form"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.493"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.36">
|
||||
app:layout_constraintVertical_bias="0.377">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView8"
|
||||
@ -67,9 +67,9 @@
|
||||
android:layout_marginTop="20dp"
|
||||
android:fontFamily="@font/poppins_regular"
|
||||
android:text="Email"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/Primary_Dark"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView10" />
|
||||
|
||||
@ -122,8 +122,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:textColor="@color/black"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/black"
|
||||
tools:ignore="SpeakableTextPresentCheck" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
Reference in New Issue
Block a user