This commit is contained in:
Carlos Delgado 2016-06-09 16:08:27 +02:00
parent dc0c53ab9d
commit fac3e09a49

View File

@ -22,8 +22,7 @@ public class OurCodeWorldpreventscreenshots extends CordovaPlugin {
}else if(ACTION_DISABLE.equals(action)){
cordova.getActivity().runOnUiThread(new Runnable() {
public void run() {
cordova.getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);
cordova.getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
}
});
}