From e7d8b1cc7022efe21839b2eee1f7dcf1a6a7e633 Mon Sep 17 00:00:00 2001 From: kenstir Date: Wed, 25 Nov 2015 20:48:09 -0500 Subject: [PATCH] making isDebuggable more generic --- .../core/src/org/evergreen_ils/auth/AuthenticatorActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/Android/core/src/org/evergreen_ils/auth/AuthenticatorActivity.java b/Open-ILS/src/Android/core/src/org/evergreen_ils/auth/AuthenticatorActivity.java index 528982a6b5..297f2c5aa7 100644 --- a/Open-ILS/src/Android/core/src/org/evergreen_ils/auth/AuthenticatorActivity.java +++ b/Open-ILS/src/Android/core/src/org/evergreen_ils/auth/AuthenticatorActivity.java @@ -337,7 +337,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity { private void parseLibrariesJSON(String json) { libraries.clear(); - if (isDebuggable()) { + if (isDebuggable(this)) { Library library = new Library("https://demo.evergreencatalog.com", "evergreencatalog.com Demo", "0ut There, US (evergreencatalog.com Demo)", null); //Library library = new Library("http://mlnc4.mvlcstaff.org"), "MVLC Demo", "0ut There, US (MVLC Demo)", null);// Android does not like this cert libraries.add(library); @@ -377,7 +377,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity { } } - public boolean isDebuggable() { - return (0 != (getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); + public static boolean isDebuggable(Context context) { + return (0 != (context.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); } } -- 2.11.0