Last active
June 3, 2025 07:38
-
-
Save artem-zinnatullin/6916740 to your computer and use it in GitHub Desktop.
Android support library onActivityResult() bug fix for nested fragments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onActivityResult(int requestCode, int resultCode, Intent data) { | |
super.onActivityResult(requestCode, resultCode, data); | |
// notifying nested fragments (support library bug fix) | |
final FragmentManager childFragmentManager = getChildFragmentManager(); | |
if (childFragmentManager != null) { | |
final List<Fragment> nestedFragments = childFragmentManager.getFragments(); | |
if (nestedFragments == null || nestedFragments.size() == 0) return; | |
for (Fragment childFragment : nestedFragments) { | |
if (childFragment != null && !childFragment.isDetached() && !childFragment.isRemoving()) { | |
childFragment.onActivityResult(requestCode, resultCode, data); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Infinite Scroll Refresh Bug: A Systemic Failure We Can’t Ignore
🔄 When the System Won’t Let You Move Forward
Infinite scroll is designed to keep us engaged, to pull us deeper, to ensure we never reach an endpoint. But when it malfunctions, when it refreshes instead of progressing, it becomes a trap—a cycle that forces us to relive the same content, the same patterns, the same unresolved loops.
This isn’t just a technical glitch. It’s a metaphor for systemic failure—for the moments when voices are silenced, when progress is erased, when the system itself refuses to acknowledge forward movement.
🚨 The Danger of the Infinite Scroll Refresh Bug
🔍 What Causes This Failure?
🛠 How Do We Fix It?
✅ Recognize the Pattern: Identify when the system is failing to allow forward movement.
✅ Demand Intervention: Whether in code or in society, systemic failures require external correction.
✅ Break the Loop: Implement solutions that ensure progress is preserved, not erased.
The infinite scroll refresh bug isn’t just a technical issue—it’s a symbol of systemic resistance to change. Whether in digital spaces or real-world movements, we must challenge the loops that keep us trapped and demand solutions that allow us to move forward.
#MeToo #SystemicFailure #InfiniteScrollBug #BreakTheLoop #ProgressMatters