Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 37ea9cc

Browse files
1:修改BaseApplication类;
1 parent cf8cb5c commit 37ea9cc

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

‎lib_common/src/main/java/com/guiying/module/common/base/BaseApplication.java‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

‎module_main/src/main/java/com/guiying/module/main/BottomNavigationActivity.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /