Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Playlist and Database Normalization #1004

Merged
merged 36 commits into from
Feb 11, 2018

Commits on Feb 8, 2018

  1. -Added schema for local playlist and stream statistics.

    -Added normalized schema for stream history.
    -Added managers for specialized database access for stream and local playlist.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    f71242a View commit details
    Browse the repository at this point in the history
  2. -Added UI for creating playlist.

    -Added UI for appending item to playlists.
    -Added mini variant of playlist info item.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    38946e4 View commit details
    Browse the repository at this point in the history
  3. -Added basic UI for local playlists.

    -Added UI for watch history and most played fragments.
    -Added stream state table for storing playback timestamp and future usage.
    -Enabled playlist deletion.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    ba9d0d7 View commit details
    Browse the repository at this point in the history
  4. -Bump database version to 2.

    -Added migration script for upgrading database from version 1 to 2.
    -Fixed database name of stream type in stream entity.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    3c314ce View commit details
    Browse the repository at this point in the history
  5. -Deprecating database get instance without context.

    -Added comments to migrations.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    4ae81a2 View commit details
    Browse the repository at this point in the history
  6. -Added icon for adding stream to playlist.

    -Renamed HistoryPlaylistFragment to StatisticsPlaylistFragment.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    9bd2679 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    168ac91 View commit details
    Browse the repository at this point in the history
  8. -Added bulk playlist creation and append.

    -Added UI to create playlist from service player activity.
    -Added state saving to playlist dialogs.
    -Removed access to history activity on service player activity.
    -Made StreamEntity serializable.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    776dbc3 View commit details
    Browse the repository at this point in the history
  9. -Improved bulk stream upsert into playlist performance by 5x.

    -Added custom info item type for plain stream entity.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    a74c416 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    81f4818 View commit details
    Browse the repository at this point in the history
  11. -Added support for changing local playlist name and thumbnail url.

    -Added query to remove stream table orphans.
    -Added query for retrieving flattened watch history records.
    -Added holder for local playlist stream info items.
    -Refactored info item on select listener as on touch gesture.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    f0829f9 View commit details
    Browse the repository at this point in the history
  12. -Added history record manager as single entry for all database histor…

    …y transactions.
    
    -Merged stream record manager into history record manager.
    -Removed subject-based history database actions.
    -Merged normalized history table into watch history fragment.
    -Modified history fragments to use long click for delete actions.
    -Refactored DAO operations from search fragment to record manager.
    -Added index to search history table on search string.
    -Fix baseplayer round repeat not detected by discontinuity.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    388ec3e View commit details
    Browse the repository at this point in the history
  13. -Removed watch history table.

    -Added migration for dropping watch history table.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    17d77aa View commit details
    Browse the repository at this point in the history
  14. -Revamped local items to display more information such as service nam…

    …e, etc.
    
    -Enabled reordering, renaming, removing of items on playlist fragment.
    -Enabled removal of dangling streams entries when history is cleared.
    -Changed playlist append menu item to icon on service player activity.
    -Added adapter and builder for local items, removed dependency on infoitem and existing infolist for database entry items.
    -Removed watch history entity and DAO.
    -Extracted info item selected listener to remove adding boilerplate code when long click functionality is optional.
    -Fixed query returning no record on left join when right table is empty.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    84c5d27 View commit details
    Browse the repository at this point in the history
  15. -Condensed repeating entries on stream history.

    -Changed search history to show service name and stream history to show repeat count.
    -Removed history entry abstract and unused info items.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    d31eeac View commit details
    Browse the repository at this point in the history
  16. -Redone control panel in video detail fragment.

    -Added playlist append menu item to channel and playlist fragments.
    -Added debouncing to local playlist fragment to allow saving join when list is reordered or item is deleted.
    -Extracted hardcoded strings.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    9b4a07d View commit details
    Browse the repository at this point in the history
  17. -Added state saving for streams on skip and player exception events.

    -Added query for loading saved stream states.
    -Modified orphan record removal to no longer consider stream table records.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    d3160ee View commit details
    Browse the repository at this point in the history
  18. -Fixed memory leak due to image loader overusing memory cache.

    -Added disk cache for local item loading.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    6f9deea View commit details
    Browse the repository at this point in the history
  19. -Fixed memory leak in playlist append dialog due to rogue flowables.

    -Changed image loader memory cache to use limited LRU.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    62814f0 View commit details
    Browse the repository at this point in the history
  20. -Fixed memory leak on rogue observable in history fragment.

    -Removed stream id from playlist stream join table since only foreign constraint is needed.
    -Added bar to playlist control UI.
    -Modified local playlist fragment to no longer save when out of focus.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    75a58d6 View commit details
    Browse the repository at this point in the history
  21. -Modified BaseLocalItemFragment to no longer cache items when going i…

    …nto background.
    
    -Refactored and restructured all LocalItem related fragments and dialogs.
    -Added error logging to unmonitored single-use observables.
    -Modified playlist metadata query to return by alphabetical order.
    -Removed sending toast when playlist is renamed or deleted as it is obvious.
    -Removed unused code in main fragment.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    225b43c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    1ff8b5f View commit details
    Browse the repository at this point in the history
  23. -Increased save join debounce time to 2 seconds.

    -Added add to playlist option for videos available as base list items.
    -Moved video count to second row on local playlist header.
    -Removed bottom line on playlist control UI.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    53a1833 View commit details
    Browse the repository at this point in the history
  24. -Added save on exit to local playlist fragment.

    -Improved drag reordering experience by setting minimum velocity.
    -Increased save debounce to 10 seconds.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    2687621 View commit details
    Browse the repository at this point in the history
  25. -Fixed database updates cause outdated record to overwrite reordered …

    …local playlist when fragment is active.
    
    -Fixed save on exit causes empty list being saved after orientation changes on older devices.
    -Fixed NPE on animating garbage collected views on local item fragments.
    -Reduced drag speed from 15 to 12 items per second.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    3c3fe7b View commit details
    Browse the repository at this point in the history
  26. -Fixed NPE issues when button views are clicked on local playlist and…

    … statistics playlist fragments are out of focus.
    
    -Added disk cache size limit for image loader.
    -Fixed button names for playlist rename dialog.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    efd4db4 View commit details
    Browse the repository at this point in the history
  27. -Added ability to save playlist as remote playlist link rather than s…

    …toring it in database.
    
    -Added LeakCanary as part of debug build.
    -Modified bookmark list to show both remote and local playlists.
    -Removed ability to save channel items as local playlist, in favor of subscribe.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    c0a75f5 View commit details
    Browse the repository at this point in the history
  28. -Added listener unregistration to local item adapters to release depe…

    …ndency and avoid memory leak.
    
    -Added listener unregistration on all listeners using contexts in local item related fragments.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    7ab41e0 View commit details
    Browse the repository at this point in the history
  29. -Renamed "watch history" fragment under bookmark to "last played".

    -Renamed "watched history" fragment under history to "watch history".
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    6020dc2 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    c3941d5 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0630423 View commit details
    Browse the repository at this point in the history
  32. -Removed Leak Canary dependency.

    -Fixed local playlist header margins.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    490b250 View commit details
    Browse the repository at this point in the history
  33. -Fixed playlist bookmark button not showing out when activity / playl…

    …ist fragment is created by external share.
    karyogamy committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    c5ec8d0 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2018

  1. -Fixed playlist creation icon in playlist append dialog.

    -Fixed bookmarking disposable not part of playlist fragment lifecycle.
    -Rearranged local fragment directory structure.
    karyogamy committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    d0808ce View commit details
    Browse the repository at this point in the history
  2. -Merged bookmark buttons on playlist fragment into one.

    -Fixed bookmark button flickering on visibility toggling.
    -Removed toolbar up button control from local fragments, delegating functionality back to main fragment.
    -Updated extractor to latest.
    karyogamy committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    f62ae93 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2018

  1. -Fixed Soundcloud playlist bookmark button not working when entered f…

    …rom search page.
    
    -Fixed NPE when playlist fragment is destroyed while renaming.
    -Fixed remote playlist thumbnail to use uploader avatar when thumbnail url is unavailable.
    -Added dispose on exit to all database requests in local playlist fragment.
    karyogamy committed Feb 11, 2018
    Configuration menu
    Copy the full SHA
    cb41afb View commit details
    Browse the repository at this point in the history