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

[tor-commits] [orbot/master] fixes github #59 for crash on app list UI



commit 1ae0c71ac7d7c3e95d4e7f3b1ba02863cbb22dff
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Thu Nov 3 10:36:39 2016 -0400

    fixes github #59 for crash on app list UI
---
 app/src/main/java/org/torproject/android/ui/AppManager.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/src/main/java/org/torproject/android/ui/AppManager.java b/app/src/main/java/org/torproject/android/ui/AppManager.java
index 85fe4b3..9a15dae 100644
--- a/app/src/main/java/org/torproject/android/ui/AppManager.java
+++ b/app/src/main/java/org/torproject/android/ui/AppManager.java
@@ -122,7 +122,9 @@ public class AppManager extends AppCompatActivity implements OnCheckedChangeList
                     app.setTorified(!app.isTorified());
                 }
 
-                box.setChecked(app.isTorified());
+                if (box != null)
+                    box.setChecked(app.isTorified());
+
             }
             saveAppSettings(context);
             loadApps(prefs);



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