Closed Sutheres closed 6 years ago
This should work. It should be after the CardForm#setup(Activity)
. That method is where the FLAG_SECURE
gets set.
Even without this line, you should be able to take screenshots using an emulator.
You'll want to be careful with releasing your Android app that has this flag cleared. Ideally production apps shouldn't be able to take screenshots.
Issue description
I put
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
in onCreate of my Activity that holds the cardForm. Still cannot take screenshots. Am I missing something?