[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-52.7.2esr-8.0-1] Orfox: disable screenshots and prevent page from being in "recent apps"



commit d14a1e47739a99ef6265ab09aa4d2c26be086c20
Author: Hans-Christoph Steiner <hans@xxxxxxx>
Date:   Sat Nov 21 00:10:06 2015 +0100

    Orfox: disable screenshots and prevent page from being in "recent apps"
    
    Signed-off-by: Amogh Pradeep <amoghbl1@xxxxxxxxx>
---
 mobile/android/base/java/org/mozilla/gecko/GeckoApp.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
index 05fa2bbf812e..2f989576c1a9 100644
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -95,6 +95,7 @@ import android.view.View;
 import android.view.ViewGroup;
 import android.view.ViewTreeObserver;
 import android.view.Window;
+import android.view.WindowManager;
 import android.widget.AbsoluteLayout;
 import android.widget.AdapterView;
 import android.widget.Button;
@@ -1257,6 +1258,9 @@ public abstract class GeckoApp
 
         GeckoScreenOrientation.getInstance().update(getResources().getConfiguration().orientation);
 
+        // disable screenshots and pic in "recent apps"
+        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
+
         setContentView(getLayout());
 
         // Set up Gecko layout.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits