@@ -24,7 +24,7 @@ public class BaseApplication extends Application {
2424
2525 private static BaseApplication sInstance ;
2626
27- private List <ApplicationDelegate > mAppDelegateList ;
27+ private List <IApplicationDelegate > mAppDelegateList ;
2828
2929
3030 public static BaseApplication getIns () {
@@ -37,8 +37,8 @@ public void onCreate() {
3737 sInstance = this ;
3838 Logger .init ("pattern" ).logLevel (LogLevel .FULL );
3939 Utils .init (this );
40- mAppDelegateList = ClassUtils .getObjectsWithInterface (this , ApplicationDelegate .class , ROOT_PACKAGE );
41- for (ApplicationDelegate delegate : mAppDelegateList ) {
40+ mAppDelegateList = ClassUtils .getObjectsWithInterface (this , IApplicationDelegate .class , ROOT_PACKAGE );
41+ for (IApplicationDelegate delegate : mAppDelegateList ) {
4242 delegate .onCreate ();
4343 }
4444
@@ -47,7 +47,7 @@ public void onCreate() {
4747 @ Override
4848 public void onTerminate () {
4949 super .onTerminate ();
50- for (ApplicationDelegate delegate : mAppDelegateList ) {
50+ for (IApplicationDelegate delegate : mAppDelegateList ) {
5151 delegate .onTerminate ();
5252 }
5353 }
@@ -56,15 +56,15 @@ public void onTerminate() {
5656 @ Override
5757 public void onLowMemory () {
5858 super .onLowMemory ();
59- for (ApplicationDelegate delegate : mAppDelegateList ) {
59+ for (IApplicationDelegate delegate : mAppDelegateList ) {
6060 delegate .onLowMemory ();
6161 }
6262 }
6363
6464 @ Override
6565 public void onTrimMemory (int level ) {
6666 super .onTrimMemory (level );
67- for (ApplicationDelegate delegate : mAppDelegateList ) {
67+ for (IApplicationDelegate delegate : mAppDelegateList ) {
6868 delegate .onTrimMemory (level );
6969 }
7070 }
0 commit comments