Skip to content

Commit

Permalink
Fix force quit
Browse files Browse the repository at this point in the history
  • Loading branch information
gino-m committed Sep 8, 2023
1 parent 6f7a998 commit 71ed1a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ internal constructor(
}

private fun onLargeAreaSelected() {
visibleBottomTextViewId.value = R.id.area_too_large_text_view
downloadButtonEnabled.value = false
visibleBottomTextViewId.postValue(R.id.area_too_large_text_view)
downloadButtonEnabled.postValue(false)
}
}
6 changes: 4 additions & 2 deletions ground/src/main/res/layout/offline_base_map_selector_frag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAlignment="center"
android:textSize="20sp"
android:textSize="14sp"
android:textColor="@color/textOverMap"
android:layout_marginHorizontal="64dp"
android:visibility="@{viewModel.visibleBottomTextViewId == R.id.size_on_disk_text_view ? View.VISIBLE : View.GONE}"
android:text="@{@string/selected_offline_area_size(viewModel.sizeOnDisk)}"/>

Expand All @@ -132,8 +133,9 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAlignment="center"
android:textSize="20sp"
android:textSize="14sp"
android:textColor="@color/textOverMap"
android:layout_marginHorizontal="64dp"
android:visibility="@{viewModel.visibleBottomTextViewId == R.id.area_too_large_text_view ? View.VISIBLE : View.GONE}"
android:text="@string/selected_offline_area_too_large"/>
</FrameLayout>
Expand Down

0 comments on commit 71ed1a7

Please sign in to comment.