Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cwa App Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Foertsch
Cwa App Android
Commits
0b26b3fd
Commit
0b26b3fd
authored
4 years ago
by
Mohamed Metwalli
Browse files
Options
Downloads
Patches
Plain Diff
Update dcos for launchFragmentInContainer2
parent
12318657
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Corona-Warn-App/src/androidTest/java/testhelpers/TestExtensions.kt
+7
-3
7 additions, 3 deletions
...rn-App/src/androidTest/java/testhelpers/TestExtensions.kt
with
7 additions
and
3 deletions
Corona-Warn-App/src/androidTest/java/testhelpers/TestExtensions.kt
+
7
−
3
View file @
0b26b3fd
...
@@ -8,9 +8,13 @@ import androidx.fragment.app.testing.FragmentScenario
...
@@ -8,9 +8,13 @@ import androidx.fragment.app.testing.FragmentScenario
import
de.rki.coronawarnapp.R
import
de.rki.coronawarnapp.R
/**
/**
* Launches Fragment in Activity root container. Same as [androidx.fragment.app.testing.launchFragmentInContainer]
* Launches Fragment in Activity root container.
* except that it defaults the theme to [R.style.AppTheme].
* Same as [androidx.fragment.app.testing.launchFragmentInContainer] except that it defaults
* This helps to avoid showing default ActionBar from [R.style.FragmentScenarioEmptyFragmentActivityTheme]
* 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.
* in cases where a screenshot is needed to match the exact theme in the App.
*/
*/
inline
fun
<
reified
F
:
Fragment
>
launchFragmentInContainer2
(
inline
fun
<
reified
F
:
Fragment
>
launchFragmentInContainer2
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment