We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5109b3 commit b24bf29Copy full SHA for b24bf29
fragmentation_core/src/main/java/me/yokeyword/fragmentation/helper/internal/VisibleDelegate.java
@@ -142,6 +142,8 @@ public void run() {
142
}
143
144
private void dispatchSupportVisible(boolean visible) {
145
+ if (visible && isParentInvisible()) return;
146
+
147
if (mIsSupportVisible == visible) {
148
mNeedDispatch = true;
149
return;
@@ -179,6 +181,11 @@ private void dispatchSupportVisible(boolean visible) {
179
181
180
182
183
184
+ private boolean isParentInvisible() {
185
+ ISupportFragment fragment = (ISupportFragment) mFragment.getParentFragment();
186
+ return fragment != null && !fragment.isSupportVisible();
187
+ }
188
189
private boolean checkAddState() {
190
if (!mFragment.isAdded()) {
191
mIsSupportVisible = !mIsSupportVisible;
0 commit comments