Block and unblock screenshot of some Fragment

♀尐吖头ヾ 提交于 2019-12-11 16:38:07

问题


It is known to all that to block an Activity/Fragment we can use:

window.setFlag(WindowManager.LayoutManager.FLAG_SECURE, WindowManager.LayoutManager.FLAG_SECURE)

But this flag blocks the View from Activity.

If you have one bootomNav with 3 Fragments and needs to block just the tab 1. In the moment setFlag is bloked all Fragments.

There is any FLAG_XXXXX for unblock the screenshot?

来源:https://stackoverflow.com/questions/59036381/block-and-unblock-screenshot-of-some-fragment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!