From fac3e09a49c3d4a15bd169856bfe309f27a190e4 Mon Sep 17 00:00:00 2001 From: Carlos Delgado Date: Thu, 9 Jun 2016 16:08:27 +0200 Subject: [PATCH] Fix --- src/android/OurCodeWorldpreventscreenshots.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/android/OurCodeWorldpreventscreenshots.java b/src/android/OurCodeWorldpreventscreenshots.java index cce20db..9102ce0 100644 --- a/src/android/OurCodeWorldpreventscreenshots.java +++ b/src/android/OurCodeWorldpreventscreenshots.java @@ -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); } }); }