MCPcopy Create free account
hub / github.com/afkT/DevUtils / initContext

Method initContext

lib/DevApp/src/main/java/dev/DevUtils.java:126–130  ·  view source on GitHub ↗

初始化全局 Context @param context Context

(final Context context)

Source from the content-addressed store, hash-verified

124 * @param context {@link Context}
125 */
126 private static void initContext(final Context context) {
127 if (DevUtils.sContext == null && context != null) {
128 DevUtils.sContext = context.getApplicationContext();
129 }
130 }
131
132 /**
133 * 初始化全局 Application

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected