Skip to content

Commit

Permalink
#17 in progress - fix for broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
mjureczko committed Sep 7, 2024
1 parent 4ef03e3 commit 5b60bf3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import androidx.compose.material.icons.twotone.Share
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import pl.marianjureczko.poszukiwacz.App
import pl.marianjureczko.poszukiwacz.R
import pl.marianjureczko.poszukiwacz.model.Route
import pl.marianjureczko.poszukiwacz.shared.DeleteRoute
Expand Down Expand Up @@ -52,8 +52,9 @@ fun MainScreenBody(goToSearching: GoToSearching) {
LargeButton(R.string.new_route_button) {
viewModel.openNewRouteDialog()
}
val context = LocalContext.current
LargeButton(R.string.route_from_bluetooth_button) {
Toast.makeText(App.getAppContext(), "Clicked Bluetooth", Toast.LENGTH_SHORT).show()
Toast.makeText(context, "Clicked Bluetooth", Toast.LENGTH_SHORT).show()
}
EnterTextDialog(
state = state.showNewRouteDialog,
Expand Down

0 comments on commit 5b60bf3

Please sign in to comment.