You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: Doesn't swipe left when new photos are available #652
Will this also work in PhotoVideoActivity? I don't see any ContentObserver there.
Both PhotoVideoActivity and ViewPagerActivity inherit the SimpleActivity (which contains the observer). Just need to register the observer at the right time and reload the media when changes occur.
Activity
naveensingh commentedon Sep 13, 2025
It'll be handled in #284
soshial commentedon Sep 13, 2025
Thanks you, @naveensingh! Will this also work in
PhotoVideoActivity? I don't see any ContentObserver there.naveensingh commentedon Sep 13, 2025
Both
PhotoVideoActivityandViewPagerActivityinherit theSimpleActivity(which contains the observer). Just need to register the observer at the right time and reload the media when changes occur.soshial commentedon Sep 14, 2025
Thanks, but I couldn't find registerFileUpdateListener() being called in PhotoVideoActivity or SimpleActivity.
Also, I think this a badly engineered approach having it in SimpleActivity, because the same code will be executed multiple times:
It should be launched/subscribed only once in a single place, and other activities should simply subscribe to changes.
naveensingh commentedon Sep 14, 2025
Currently, only
MainActivityandMediaActivityregister the observer (by callingregisterFileUpdateListener()).Also, note that when you are able to swipe, you are in the ViewPagerActivity, not PhotoVideoActivity.
Agreed. All Fossify apps don't follow the recommended architecture. There are many ancient God activities.