title: Disable ScreenShot in current android fragment
body: <p>I try to disable screenshot in current fragment,and enable it to others,for disable i use</p>
  
  <pre><code>getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE) or getActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE)
  and for enable use
  getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
  </code></pre>
  
  <p>But this nor work,working only in <code>Samsung galaxy s5</code> and more, in <code>Galaxy s3</code> working only after fragment come from background, in htc m8s it dont work never!!!</p>
  
  <p>And it always work when i gove flag before my <code>main Activity setContentView</code> method,it work for all devices!I have only one Activity,and i want to disable screenShot only for one fragment!</p>