Skip to content

Commit

Permalink
SkinCompatDelegate 增加 getSkinHelpers 方法
Browse files Browse the repository at this point in the history
  • Loading branch information
donglua committed Aug 17, 2022
1 parent 776e6e4 commit e84945b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ public static SkinCompatDelegate create(Context context) {
}

public void applySkin() {
if (mSkinHelpers != null && !mSkinHelpers.isEmpty()) {
if (!mSkinHelpers.isEmpty()) {
for (WeakReference ref : mSkinHelpers) {
if (ref != null && ref.get() != null) {
((SkinCompatSupportable) ref.get()).applySkin();
}
}
}
}

public Set<WeakReference<SkinCompatSupportable>> getSkinHelpers() {
return mSkinHelpers;
}
}

0 comments on commit e84945b

Please sign in to comment.