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

Improve TraceLocations transitions (DEV) #2769

Merged
merged 8 commits into from
Apr 8, 2021
Merged
Prev Previous commit
Next Next commit
Animate to poster
mtwalli committed Apr 8, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 836304601c499f308203d9aa71797a8f0d688c1c
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ import androidx.navigation.fragment.navArgs
import com.google.android.material.appbar.AppBarLayout
import com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener
import com.google.android.material.transition.MaterialContainerTransform
import com.google.android.material.transition.MaterialSharedAxis
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.TraceLocationOrganizerQrCodeDetailFragmentBinding
import de.rki.coronawarnapp.util.ContextExtensions.getDrawableCompat
@@ -72,6 +73,9 @@ class QrCodeDetailFragment : Fragment(R.layout.trace_location_organizer_qr_code_
}

qrCodePrintButton.setOnClickListener {
exitTransition = MaterialSharedAxis(MaterialSharedAxis.Z, true)
reenterTransition = MaterialSharedAxis(MaterialSharedAxis.Z, false)

viewModel.onPrintQrCode()
}