Skip to content

Commit

Permalink
解决activity结束后删除错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mxlei committed Aug 31, 2022
1 parent 4da2aa3 commit 9aaf17c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation project(':skin-changer')
// implementation 'com.github.JefferyBoy:AndroidSkinChanger:1.0.0'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "AndroidSkinChanger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.RegionIterator;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
Expand All @@ -28,7 +26,6 @@
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.Stack;
Expand Down Expand Up @@ -346,6 +343,6 @@ public void onActivityResumed(@NonNull Activity activity) {

@Override
public void onActivityDestroyed(@NonNull Activity activity) {
activityStack.pop();
activityStack.remove(getActivityRecord(activity));
}
}

0 comments on commit 9aaf17c

Please sign in to comment.