Skip to content

Commit

Permalink
7.0.2
Browse files Browse the repository at this point in the history
- 修改 Parameter 清理时间由原先的onDestroy()修改为 finish 事件
  • Loading branch information
kongzue committed Aug 13, 2024
1 parent 3521fd5 commit 02b8342
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.kongzue.baseframeworkdemo"
minSdkVersion 15
targetSdkVersion 30
versionCode 137
versionName "7.0.0"
versionCode 138
versionName "7.0.2"
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions baseframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 34
versionCode 135
versionName "7.0.0"
versionCode 138
versionName "7.0.2"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ private boolean requestFeature(int featureId) {

@Override
public void finish() {
if (getParameter() != null) {
getParameter().cleanAll();
}
AppManager.getInstance().killActivity(me);
if (exitHoldAnimResId != -1 && exitAnimResId != -1) {
jumpAnim(exitAnimResId, exitHoldAnimResId,true);
Expand Down Expand Up @@ -1440,9 +1443,6 @@ protected void onDestroy() {
isAlive = false;
logG("\n" + me.getClass().getSimpleName(), "onDestroy");
info(2, me.getClass().getSimpleName() + ":onDestroy");
if (getParameter() != null) {
getParameter().cleanAll();
}
AppManager.getInstance().deleteActivity(me);
if (lifeCircleListener != null) {
lifeCircleListener.onDestroy();
Expand Down

0 comments on commit 02b8342

Please sign in to comment.