Skip to content
Snippets Groups Projects
Commit 0b26b3fd authored by Mohamed Metwalli's avatar Mohamed Metwalli
Browse files

Update dcos for launchFragmentInContainer2

parent 12318657
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,13 @@ import androidx.fragment.app.testing.FragmentScenario
import de.rki.coronawarnapp.R
/**
* Launches Fragment in Activity root container. Same as [androidx.fragment.app.testing.launchFragmentInContainer]
* except that it defaults the theme to [R.style.AppTheme].
* This helps to avoid showing default ActionBar from [R.style.FragmentScenarioEmptyFragmentActivityTheme]
* Launches Fragment in Activity root container.
* Same as [androidx.fragment.app.testing.launchFragmentInContainer] except that it defaults
* the theme to [R.style.AppTheme].
*
* This helps to avoid showing:
* 1- Default ActionBar from [R.style.FragmentScenarioEmptyFragmentActivityTheme]
* 2- Some UI elements squeezed than it should be.
* in cases where a screenshot is needed to match the exact theme in the App.
*/
inline fun <reified F : Fragment> launchFragmentInContainer2(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment