Skip to content

Commit

Permalink
fix: checkbox padding and activity launch from external app.
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Jun 27, 2024
1 parent 6a19d31 commit 451a147
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ class AddDescriptorActivity : AbstractActivity() {
finish()
}

viewModel.selectedAllBtnStatus.observe(this) { state ->
binding.testsCheckbox.checkedState = state;
binding.expandableListView.viewTreeObserver.addOnGlobalLayoutListener {
binding.testsCheckbox.checkedState = viewModel.selectedAllBtnStatus.value!!
}

// This observer is used to change the state of the "Select All" button when a checkbox is clicked.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class OoniRunV2Activity : AbstractActivity() {
private fun fetchDescriptorComplete(descriptorResponse: TestDescriptor?) {
descriptorResponse?.let {
startActivity(AddDescriptorActivity.newIntent(this, descriptorResponse))
finish()
} ?: run {
finishWithError()
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_overview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
android:childDivider="@android:color/transparent"
android:divider="@android:color/transparent"
android:groupIndicator="@null"
android:paddingHorizontal="16dp"
android:paddingStart="16dp"
app:layout_constraintTop_toBottomOf="@id/header"
tools:listitem="@layout/overview_test_group_list_item" />

Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/nettest_group_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingEnd="16dp" >
android:orientation="horizontal">

<LinearLayout
android:layout_width="wrap_content"
Expand Down

0 comments on commit 451a147

Please sign in to comment.