Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
fixed not using nav.tum.de instead of nav.tum.sexy
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 10, 2023
1 parent 560dc2d commit 6789bec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class NavigaTumAPIClient(private val apiService: NavigaTumAPIService) {
}

companion object {
private const val BASE_URL = "https://nav.tum.sexy/"
private const val BASE_URL = "https://nav.tum.de/"

private var apiClient: NavigaTumAPIClient? = null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data class RoomfinderMap(
)

fun RoomFinderMapDto.toNavigationMap(): RoomfinderMap {
val basicMapUrl = "https://nav.tum.sexy/cdn/maps/roomfinder/"
val basicMapUrl = "https://nav.tum.de/cdn/maps/roomfinder/"
return RoomfinderMap(
mapId = this.id,
mapName = this.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class NavigaTUMActivity : AppCompatActivity() {
val intent = intent
val location = intent.getStringExtra("location")
val encoded_location = java.net.URLEncoder.encode(location, "utf-8")
val url = "https://nav.tum.sexy/search?q=$encoded_location"
val url = "https://nav.tum.de/search?q=$encoded_location"
val webview = WebView(this)
setContentView(webview)
webview.settings.javaScriptEnabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class NavigationDetailsFragment : BaseFragment<Unit>(
.setTitle(R.string.not_implemented)
.setMessage(R.string.not_implemented_interactive_map)
.setPositiveButton(R.string.redirect) { _, _ ->
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://nav.tum.sexy/view/${viewModel.state.value.navigationDetails?.id}"))
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://nav.tum.de/view/${viewModel.state.value.navigationDetails?.id}"))
startActivity(intent)
}
.setNegativeButton(R.string.cancel, null)
Expand Down

0 comments on commit 6789bec

Please sign in to comment.