Skip to content

Commit 83c7f9f

Browse files
committed
Remove WithContext
1 parent 1e482cf commit 83c7f9f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

app/src/main/java/com/cornellappdev/scoop/ui/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MainActivity : ComponentActivity() {
1818
setContent {
1919
ProvideWindowInsets {
2020
ScoopTheme {
21-
OnboardingHolderView()
21+
MainScreen()
2222
}
2323
}
2424
}

app/src/main/java/com/cornellappdev/scoop/ui/components/general/NavHeader.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ fun NavHeader(
4747
Button(
4848
onClick = {
4949
scope.launch {
50-
withContext(Dispatchers.IO){
51-
backFunction()
52-
}
50+
backFunction()
5351
}
5452
},
5553
colors = ButtonDefaults.buttonColors(backgroundColor = Color.White),

app/src/main/java/com/cornellappdev/scoop/ui/components/general/RightArrow.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ fun RightArrow(
4343
onClick = {
4444
Log.d("PAGERSTATE", "button Clicked")
4545
scope.launch {
46-
withContext(Dispatchers.IO) {
47-
nextFunction()
48-
}
46+
nextFunction()
4947
}
5048
}
5149
) {

0 commit comments

Comments
 (0)