Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Revert changes from EXPOSUREAPP-12901 as they introduced a navigation…
Browse files Browse the repository at this point in the history
… bug (#5338)

Co-authored-by: Alex Paulescu <alex.paulescu@gmail.com>
  • Loading branch information
schauersbergern and SamuraiKek committed Jul 12, 2022
1 parent 687f0cc commit f1c9f87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package de.rki.coronawarnapp.familytest.ui.selection
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.navigation.NavOptions
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import de.rki.coronawarnapp.R
Expand All @@ -27,6 +28,7 @@ class TestRegistrationSelectionFragment : Fragment(R.layout.fragment_test_regist
}
)
private val binding: FragmentTestRegistrationSelectionBinding by viewBinding()
private val navOptions = NavOptions.Builder().setPopUpTo(R.id.testRegistrationSelectionFragment, true).build()

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
Expand All @@ -41,7 +43,8 @@ class TestRegistrationSelectionFragment : Fragment(R.layout.fragment_test_regist
TestRegistrationSelectionFragmentDirections
.actionTestRegistrationSelectionFragmentToSubmissionConsentFragment(
coronaTestQrCode = it.coronaTestQRCode
)
),
navOptions
)
}
is TestRegistrationSelectionNavigationEvents.NavigateToDeletionWarning -> {
Expand All @@ -58,7 +61,8 @@ class TestRegistrationSelectionFragment : Fragment(R.layout.fragment_test_regist
TestRegistrationSelectionFragmentDirections
.actionTestRegistrationSelectionFragmentToFamilyTestConsentFragment(
coronaTestQrCode = it.coronaTestQRCode
)
),
navOptions
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/CWAMaterialToolbar.BackArrow.Transparent"
style="@style/CWAMaterialToolbar.Close.Transparent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/submission_consent_header"
style="@style/CWAMaterialToolbar.BackArrow"
style="@style/CWAMaterialToolbar.Close"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
Expand Down

0 comments on commit f1c9f87

Please sign in to comment.