zzwendy / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

App with overlaying DialogFragment doesn't render background in screenshot #580

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Activity
2. Open up a DialogFragment
3. Take a screenshot

What is the expected output? What do you see instead?
A screenshot of the dialog with the original activity in the background 
visible, as seen on the screen.
However, I get a screenshot of only the dialog itself, the background behind it 
is gone.

What version of the product are you using? On what operating system?
5.0.1

Please provide any additional information below.
I can't attach screenshots here: "Issue attachment storage quota exceeded." I 
do have them available.

Original issue reported on code.google.com by goo...@umito.nl on 23 Feb 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Unfortunately there is nothing that can be done about this. The way in which 
takeScreenshot works is to save an image from the top parent view. If the 
background is not part of that parent it will not be saved. 

Original comment by renasr...@gmail.com on 24 Feb 2014 at 3:06