From 16adecf9e7d739d14f81b685cea1bd38b42abd83 Mon Sep 17 00:00:00 2001 From: RASYID DARUSMAN Date: Mon, 13 Jan 2025 23:37:51 +0700 Subject: [PATCH] UAS --- .idea/deploymentTargetSelector.xml | 1 + app/src/main/java/com/example/siamobile/KHSActivity.kt | 2 +- .../main/java/com/example/siamobile/Mhs000000000000.kt | 2 ++ .../main/java/com/example/siamobile/Mhs202210715145.kt | 8 ++++---- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index b268ef3..ca16a99 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,6 +4,7 @@ diff --git a/app/src/main/java/com/example/siamobile/KHSActivity.kt b/app/src/main/java/com/example/siamobile/KHSActivity.kt index fc67e11..55a9622 100644 --- a/app/src/main/java/com/example/siamobile/KHSActivity.kt +++ b/app/src/main/java/com/example/siamobile/KHSActivity.kt @@ -106,7 +106,7 @@ fun KHSItem(mahasiswaName: String) { val context = LocalContext.current val mahasiswaActivityMap = mapOf( "000000000000 EXAMPLE" to Mhs000000000000::class.java, - "202210715136 MUHAMAD RAJWA ATHORIQ" to Mhs202210715136::class.java + "202210715145 RASYID DARUSMAN" to Mhs202210715145::class.java //"202210715185 AHMAD DIMAS RAMADHAN" to Mhs202210715185::class.java, // silahkan ditambahkan di sini untuk NPM yang lain ) diff --git a/app/src/main/java/com/example/siamobile/Mhs000000000000.kt b/app/src/main/java/com/example/siamobile/Mhs000000000000.kt index ca6a960..4e6b007 100644 --- a/app/src/main/java/com/example/siamobile/Mhs000000000000.kt +++ b/app/src/main/java/com/example/siamobile/Mhs000000000000.kt @@ -34,6 +34,8 @@ import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.example.siamobile.ui.theme.SIAMobileTheme +import com.example.siamobile.DetailMahasiswaScreen + class Mhs000000000000 : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { diff --git a/app/src/main/java/com/example/siamobile/Mhs202210715145.kt b/app/src/main/java/com/example/siamobile/Mhs202210715145.kt index fd4ed99..d349815 100644 --- a/app/src/main/java/com/example/siamobile/Mhs202210715145.kt +++ b/app/src/main/java/com/example/siamobile/Mhs202210715145.kt @@ -34,11 +34,12 @@ import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.example.siamobile.ui.theme.SIAMobileTheme +import com.example.siamobile.DetailMahasiswaScreen -class Mhs202210715136 : ComponentActivity() { +class Mhs202210715145 : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - val mahasiswaName = intent.getStringExtra("mahasiswaName") ?: "NPM: 202210715145 Nama : Rasyid Darusman" + val mahasiswaName = intent.getStringExtra("mahasiswaName") ?: "NPM: 202210715145 Nama: Rasyid Darusman" setContent { SIAMobileTheme { DetailMahasiswaScreen(mahasiswaName) @@ -48,7 +49,7 @@ class Mhs202210715136 : ComponentActivity() { } @Composable -fun DetailMahasiswaScreenOld(mahasiswaName: String) { +fun DetailMahasiswaScreen2(mahasiswaName: String) { val context = LocalContext.current val matakuliahList = listOf( Triple(1, "Aljabar Linear", 1), @@ -67,7 +68,6 @@ fun DetailMahasiswaScreenOld(mahasiswaName: String) { Triple(14, "Pendidikan Agama", 2), Triple(15, "Sistem Basis Data", 2), Triple(16, "Analisa Numerik", 3) - Triple(17, "Jaringan Komputer 1", 3) ) Column(