@@ -36,7 +36,7 @@ public static Context getContext() {
36
36
Application application = (Application ) Class .forName ("android.app.ActivityThread" )
37
37
.getMethod ("currentApplication" ).invoke (null , (Object []) null );
38
38
if (application != null ) {
39
- Log .d (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
39
+ Log .e (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
40
40
return application ;
41
41
}
42
42
}
@@ -48,7 +48,7 @@ public static Context getContext() {
48
48
Application application = (Application ) Class .forName ("android.app.AppGlobals" )
49
49
.getMethod ("getInitialApplication" ).invoke (null , (Object []) null );
50
50
if (application != null ) {
51
- Log .d (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
51
+ Log .e (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
52
52
return application ;
53
53
}
54
54
}
@@ -61,7 +61,7 @@ public static Context getContext() {
61
61
.getMethod ("systemMain" ).invoke (null , (Object []) null );
62
62
Context context = (Context ) activityThread .getClass ().getMethod ("getSystemContext" ).invoke (activityThread , (Object []) null );
63
63
if (context != null ) {
64
- Log .d (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
64
+ Log .e (VDContextHolder .class .getName (), "ContextHolder is not initialed, it is recommend to initial with application context." );
65
65
return context ;
66
66
}
67
67
}
0 commit comments