Skip to content

Commit

Permalink
minor ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthMudgil committed Aug 9, 2023
1 parent 304dc33 commit f0a1444
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/src/main/java/com/sidharth/mosam/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ class MainActivity : AppCompatActivity() {
ActivityMainBinding.inflate(layoutInflater)
}

private val cityMapping = mapOf(
"New York" to Pair(40.712783, -74.005941),
"Singapore" to Pair(1.352100, 103.819820),
"Mumbai" to Pair(19.076080, 72.877420),
"Delhi" to Pair(28.613939, 77.229879),
"Sydney" to Pair(-33.868817, 151.207849),
"Melbourne" to Pair(-37.813620, 144.963081)
)

private val locationPermissionLauncher =
registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) { permissions ->
val fineLocationGranted = permissions[Manifest.permission.ACCESS_FINE_LOCATION] ?: false
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
android:id="@+id/flow_wind"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="flow_wind_direction,flow_wind_speed"
app:constraint_referenced_ids="flow_wind_speed,flow_wind_direction"
app:layout_constraintBottom_toBottomOf="@+id/card_wind_info"
app:layout_constraintEnd_toEndOf="@+id/card_wind_info"
app:layout_constraintStart_toStartOf="@+id/card_wind_info"
Expand Down

0 comments on commit f0a1444

Please sign in to comment.