File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
lib_common/src/main/java/com/guiying/module/common/base
module_main/src/main/java/com/guiying/module/main Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,30 @@ public void onCreate() {
4141 for (ApplicationDelegate delegate : mAppDelegateList ) {
4242 delegate .onCreate ();
4343 }
44+ }
4445
46+ @ Override
47+ public void onTerminate () {
48+ super .onTerminate ();
49+ for (ApplicationDelegate delegate : mAppDelegateList ) {
50+ delegate .onTerminate ();
51+ }
4552 }
4653
4754
55+ @ Override
56+ public void onLowMemory () {
57+ super .onLowMemory ();
58+ for (ApplicationDelegate delegate : mAppDelegateList ) {
59+ delegate .onLowMemory ();
60+ }
61+ }
62+
63+ @ Override
64+ public void onTrimMemory (int level ) {
65+ super .onTrimMemory (level );
66+ for (ApplicationDelegate delegate : mAppDelegateList ) {
67+ delegate .onTrimMemory (level );
68+ }
69+ }
4870}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
3939 mPager .setCurrentItem (1 );
4040 return true ;
4141 } else if (i == R .id .navigation_notifications ) {
42- mPager .setCurrentItem (2 );
42+ mPager .setCurrentItem (0 );
4343 return true ;
4444 }
4545 return false ;
You can’t perform that action at this time.
0 commit comments