From: kenstir Date: Thu, 26 Nov 2015 01:48:09 +0000 (-0500) Subject: making isDebuggable more generic X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e7d8b1cc7022efe21839b2eee1f7dcf1a6a7e633;p=working%2FEvergreen.git making isDebuggable more generic --- 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)); } }