summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/fragment
AgeCommit message (Collapse)Author
2019-07-10Fix removing wrong favoruite messageWagubi Brian
2019-07-09Queue: Keep sorted #1556damoasda
2019-07-06Merge pull request #3254 from jas14/feed-rotation-crash-3245H. Lehmann
New ViewModel for loading feed preferences across lifecycle
2019-07-02Extend play/pause functionality to Image CoverWagubi Brian
2019-07-02New ViewModel for loading feed preferences across lifecycleJoe Stein
2019-06-26Combined podcast searchByteHamster
2019-06-24Fix recycler and empty view hide/show logicAnderson Mesquita
The `emptyViewHandler` already handles hiding and showing both the empty view and the recycler view on data changes, so this commit removes this part of the logic from the episodes fragment. It also hides the empty view right after creating the recycle adapter for the first time (when the fragment is created) to prevent the progress bar and the empty view from being displayed at the same time. `createRecycleAdapter()` signature was changed to make it explicit that it depends on both the `recyclerView` and `emptyViewHandler`. Similarly, `onFragmentLoaded()`, since it also depends on the new data that gets loaded.
2019-06-24Reorganize subscription fragment lifecycleAnderson Mesquita
2019-06-24Reorganize search fragment lifecycleAnderson Mesquita
2019-06-24Reorganize playback history lifecycleAnderson Mesquita
2019-06-24Reorganize item fragments lifecycleAnderson Mesquita
2019-06-24Reorganize DownloadLogFragment lifecycleAnderson Mesquita
2019-06-24Reorganize Episode Fragments lifecycleAnderson Mesquita
This uses the existing android lifecycle methods to avoid having to do null checks and state saving in various places.
2019-06-24Fix whitespaceAnderson Mesquita
2019-06-24Reorganize downloads fragments lifecycleAnderson Mesquita
Unregistering from the EventDistributor on stop will prevent downloads from updating when an episode finishes playing while the screen was off (#2747), so this registers/unregisters on view create/destroy. Disposing of the request to load items on stop could potentially cause the same issue. Since we're disposing of this request on destroy, there's no need to keep checking and disposing of it in the several lifecycle methods. There's no need to call `onFragmentLoaded()` on attach, since this is the first lifecycle method to be called [[1]], meaning the items will always be null by the time this method is called. Finally, since `loadItems` depends on the view being created, it is now only called on view create to avoid having to store state in the class about whether the view has been created, taking advantage of the native fragment lifecycle. [1]: https://developer.android.com/guide/components/fragments Closes: #2747
2019-06-24Extract methods from onViewCreatedAnderson Mesquita
2019-06-24Fix IDE warningsAnderson Mesquita
Deprecated method, null pointer exceptions, and simpler switch with only two cases.
2019-06-24Fix whitespaceAnderson Mesquita
2019-06-14CleanupByteHamster
2019-06-14Added authentication and episode filter dialogsByteHamster
2019-06-14Updated feed settings screenByteHamster
2019-06-13Restructured preferences codeByteHamster
2019-05-27Replace action/callback utils with ItemActionButtonAnderson Mesquita
This just replaces all previous usages of `ActionButtonUtils` and `DefaultActionButtonCallback` with the newly created `ItemActionButton` class.
2019-05-27Merge pull request #3206 from ByteHamster/clear-text-trafficMartin Fietz
Clear text traffic in shownotes
2019-05-27Allow mixed contentByteHamster
2019-05-23Avoid error delivery to disposed DisposableJoe Stein
2019-05-19No longer need to listen to serviceEvent. PlaybackController does that ↵ByteHamster
automatically
2019-05-19Fixed crashByteHamster
2019-05-19Merge branch 'develop' into eventbus-v3ByteHamster
2019-05-19Merge pull request #3162 from andersonvom/2853-chapter-scrollingMartin Fietz
Scroll to chapter currently being played
2019-05-14Do not deliver result if view is destroyedByteHamster
2019-05-12Do not query database on main threadByteHamster
2019-05-08Fixed NPEByteHamster
2019-05-05Scroll to chapter currently being playedAnderson Mesquita
This is especially helpful for episodes that have a large number of chapters. Closes: #2853
2019-05-03Merge pull request #3155 from ByteHamster/empty-view-simplificationH. Lehmann
Simplify empty view handling on recycler views
2019-05-03Fixed NPE when selected item is nullByteHamster
The method is called again with a valid listAdapter automatically Closes #3154
2019-05-03Simplify empty view handling on recycler viewsByteHamster
2019-04-30Merge pull request #3147 from ByteHamster/fix-empty-listMartin Fietz
Fixed empty list not receiving updates
2019-04-30Fixed empty list not receiving updatesByteHamster
2019-04-30Return Optional feed when loading feed itemsAnderson Mesquita
RxJava 2.x no longer accepts `null` values and will yield a `NullPointerException` immediately or as a signal to downstream [1]. This returns an Optional<Feed> instead to avoid errors. [1]: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#nulls
2019-04-28Close OkHttp request before making new onesAnderson Mesquita
When adding certain podcasts [1], a `LeakedClosableViolation` is thrown due to the fact that we're reusing the OkHttpClient to make multiple requests (one to get the iTunes toplist for the user's language, and another one defaulting to US). This makes sure that all requests are closed to prevent this exception, according to OkHttp docs [2]. [1]: https://podcasts.apple.com/us/podcast/stupid-genius-with-emma-chamberlain/id1458568923 [2]: https://github.com/square/okhttp/blob/18f2b5e/okhttp/src/main/java/okhttp3/Call.kt#L32-L40
2019-04-28Made null check workByteHamster
2019-04-26Fixed crash where recyclerAdapter is nullByteHamster
Closes #3138
2019-04-25Cleanup compiler warningsAnderson Mesquita
Removes redundant casts and adds generic type to avoid compiler warnings.
2019-04-24Merge pull request #3131 from ByteHamster/fix-hiding-ExternalPlayerH. Lehmann
Hiding ExternalPlayerFragment onStart
2019-04-24Hiding ExternalPlayerFragment onStartByteHamster
If the playback is finished in background, the fragmentLayout is not hidden. Steps to reproduce (without this commit): - Start last item in queue - Leave app using home button - Finish playback by using notification skip button - Resume to AntennaPod - ExternalPlayerFragment is shown (in invalid state) but should be hidden
2019-04-19bugfix #3092 - time left on Queue screen not updated after download completesAli
2019-04-13Fixed NPEByteHamster
2019-04-12Merge pull request #3113 from ByteHamster/fix-crash-npeH. Lehmann
Fixed NPE
2019-04-12Fixed NPEByteHamster