Commit graph

172 commits

Author SHA1 Message Date
Jarne Demeulemeester
35bdda0487
Merge pull request #104 from jarnedemeulemeester/extra_settings
Extra settings
2022-04-07 20:43:46 +02:00
Jarne Demeulemeester
642b870254
Remove legacy icons 2022-03-29 13:34:31 +02:00
Jarne Demeulemeester
cce2513c7e
Enable image caching by default and set size to 20MB 2022-03-29 13:01:47 +02:00
Jarne Demeulemeester
a7e63eb1bb
Add options to disable player gestures and remember screen brightness 2022-03-28 14:07:31 +02:00
Jarne Demeulemeester
ebdb00f311
Redesign settings to two pane layout (#90)
* Redesign settings to two pane layout

* Add downloads settings

* Suppress unused settings fragments warnings

* Fix download icon in other places

Also removes the filled download drawable
2022-02-19 17:33:58 +01:00
Michael Arkhangelskiy
786e4d21a0
Add switch to toggle downloads over mobile network (#85)
* Added switch to toggle downloads over mobile network

* Add roaming and mobile data functions
2022-02-19 14:58:46 +01:00
NIK679
3f37318c05
Add option to display extended episode title (SXX:EXX - Title) in player (#78)
* Add option to display extended episode title (SXX:EXX - Title) in player

* ocd fix

* add null check condition

* Move setting to player category

Yeah this would fit in either Appearance or Player. But I lean more towards Player.

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2022-02-12 17:15:05 +01:00
Jarne Demeulemeester
4e293faf13
Fix bottom navigation using multiple back stacks 2022-01-30 19:46:03 +01:00
Jarne Demeulemeester
fa236d369d
Upgrade dependencies
buildTools 31.0.0 -> 32.0.0
material 1.4.0 -> 1.5.0
navigation 2.3.5 -> 2.4.0
room 2.4.0 -> 2.4.1
2022-01-30 18:46:45 +01:00
Jarne Demeulemeester
3a41ba6882
Add missing check for canDownload in episode bottom sheet
Fix #75
2022-01-22 10:38:44 +01:00
Jarne Demeulemeester
93d6eb9b17
Fix delete button sometimes not visible 2022-01-21 18:28:06 +01:00
Jarne Demeulemeester
dca9902e10
Only show download button when user is allow to download
Fix #75
2022-01-21 17:39:28 +01:00
maulik9898
7d9857d3ce
Improve player gestures and add pinch to zoom (#74)
* implemented pan/panStop on a GestureListener to detect the entry location and exclude top status bar area.

* remember last brightness set for players [ Exoplayer , MPV]

* Pinch to zoom and auto rotate feature for Exoplayer

* Only save the brightness when the overlay disappears instead of on every scroll

Also clean up some files

* removed unnecessary configChanges from Manifest

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2022-01-08 18:04:28 +01:00
Jarne Demeulemeester
a021e60d08
Make the app name non translatable 2021-12-22 18:20:26 +01:00
Jarne Demeulemeester
0fad2e64a1
Make loading indicators linear at the top 2021-12-19 16:18:56 +01:00
Jarne Demeulemeester
6522c6afac
Add loading indicator to MediaInfoFragment 2021-12-19 16:08:30 +01:00
Jarne Demeulemeester
c645ee3b81
New UI state system (#71)
* Convert MediaFragment to use new UiState

* Convert PersonDetailFragment to use new UiState

* Load PersonDetail data on start

* Convert FavoriteFragment to use new UiState

* Convert SeasonFragment to use new UiState

* Convert SearchResultFragment to use new UiState

* Convert EpisodeBottomSheetFragment to use new UiState (WIP)

* Convert EpisodeBottomSheetFragment to use new UiState (Part 2)

* Convert LibraryFragment to use new UiState

* Convert DownloadFragment to use new UiState

* Convert HomeFragment to use new UiState

* Convert MediaInfoFragment to use new UiState (WIP)

* Convert MediaInfoViewModel to use new UiState (Part 2)

* Convert ServerSelectViewModel to use new UiState (Semi)

* Fix MediaInfoFragment for downloaded movies
2021-12-19 15:35:36 +01:00
jarnedemeulemeester
94391765e7
Move ic_download_filled to main project 2021-11-27 21:41:52 +01:00
jarnedemeulemeester
ee9dedd7b7
Use view binding instead of data binding for AddServerFragment and LoginFragment 2021-11-27 18:56:55 +01:00
lsrom
94b3790560
Add image caching (#65)
* Add caching to settings with ability to choose cache size

* Remove unused parameter from Api

* Add glide module for cache setup

* Clean up image handling in adapters

* Move caching to it's own category

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-11-27 18:46:08 +01:00
Jcuhfehl
e259c405bb
Add brightness swipe controls (#69)
* Add brightness swipe control

* Add background to the overlays

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-11-27 16:03:17 +01:00
Jcuhfehl
598c11f299
Improve offline playback (#68)
* Fix download playback tracking bug

* Remove unused permission

* Add overview text to downloadmetadata

* Add visual indicator of whether item is downloaded

* Use downloaded item when available

* Fix "null" overview text in download metadata

* Fix crash when playing downloaded file with mpv

* Clean up

Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2021-11-27 12:18:41 +01:00
lsrom
d7a47b0a3e
Add refresh (#59)
* Add refresh to home fragment

* Remove forgotten code

* Remove unnecessary condition and fix HomeSection equality check

* Make HomeFragment fragment view model again

* Add order dependent check for home items equality

* Fix loading state overwriting error state on home refresh

* Revert to older swiperefreshlayout version

* Fixing error and loading state

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-11-14 18:44:33 +01:00
Jarne Demeulemeester
98cb038c24
Server setup improvements (#67)
* Improve AddServer fragment

* Improve login fragment

With other general improvements

* Resize the addserver and login fragments when the soft keyboard appears

* Upgrade androidx.core to 1.7.0 and add lifecycle deps

* New UI state system for AddServerFragment

This uses StateFlow for the state and SharedFlow for navigation

* Remove public flows and use collector functions

* Update Login ViewModel and Fragment

* Speed up server discovery

* Better login error message
2021-11-14 18:20:19 +01:00
lsrom
f711d21f6a
Fix add server strings (#62)
* Add strings for errors when adding server

* Use add_server_error_version string instead of version

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-31 16:09:39 +01:00
lsrom
8c90031165
Add customizable device name (#61)
* Add ability to name your device

* Update device name real time

* Remove unnecessary deviceInfo and apiClientFactory

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-31 11:43:02 +01:00
lsrom
d0673bc82b
Add missing string to default and CZ localization (#60)
Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-30 21:14:56 +02:00
lsrom
07a9e2a853
Add basic tv support (#58)
* Add basic leanback support

* Add TV home fragment

Adds basic media browsing screen for TV. Shows Home screen media.

* Fix double emit when loading user views

* Fix bug when going back to this screen would duplicate menu items

* Add basic media detail fragment

* Add ability to navigate to detail fragment

* Fix imports and null safe calls

* Fix displaying of home item view type media files

* Playback refactor

* Add basic Tv player controls and split PlayerActivity

* Update strings

* Add progress bar to partially played items on TV home screen

* Track selection dialog PoC

* Update track selection WIP

* Show track selection of focus change

* Fix series display from home

* Minor updates

* Add back button to media detail

* Zero effort add server and login

* Fix colors

* Fix back button from home going back to init fragment

* Add settings button to home screen

* Fix crash after goig back from media detail fragment

* Show seasons and cast

* Merge branch 'develop' into add_basic_tv_support

# Conflicts:
#	app/src/main/java/dev/jdtech/jellyfin/MainActivity.kt
#	app/src/main/java/dev/jdtech/jellyfin/dialogs/VideoVersionDialogFragment.kt
#	app/src/main/res/navigation/app_navigation.xml

* Fix cast title being shown with empty cast list

* Remove useless method

* Remove unused parameter

* Fix crash due to colorOnPrimary not existing in Leanback styles

* Remove unused theme

* Fix home to addserver fragment navigation

* Reuse home item layouts

This creates some duplicate code which will probably be cleaned up later

* Ignore more MissingDefaultResource

* Add banner

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-30 19:46:51 +02:00
Jcuhfehl
532e9adac1
Add offline playback (#51)
* Add offline playback

* Remove unused values

* Replace downloadutilities extension functions with normal functions

This is to not polute the namespace of fragment and context.

* Replace default Android icons with those from lucide

* Fix deleting downloaded movie

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-29 21:11:01 +02:00
lsrom
28014eaadf
Add Czech localization (#50)
* Remove unused string

* Add czech localization

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-24 18:11:19 +02:00
lsrom
62d09b3566
Add person detail screen (#47)
* Add person detail screen

Displays actor/actresses portrait and text info + list of movies/show this person starred in. Text info is max 5 lines with View More button if ellipsized. View More toggle is reset upon orientation change since in landscape mode ellipsize might not be necessary.

* Remove useless StarredInAdapter.kt

* Fix image view shape

* Improve UI

Not exactly how I would like it but will do for now

* Add error handling

Adds a lot of LiveData which may not be ideal, but is better than crashing due to connection errors.

Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2021-10-24 17:45:59 +02:00
jarnedemeulemeester
69503f504d
Remove hardcoded strings from dialogs 2021-10-23 13:35:37 +02:00
jarnedemeulemeester
aa1ef5ca5b
Add sorting options to library (collection) 2021-10-23 11:29:22 +02:00
NIK679
11ff3b4e16
Add playback speed control to the player (#46)
* add playback speed control to MPV player

* add playback speed control to exoplayer

* remove unnecessary method

* remove unused import

* use gauge icon from lucide

* use gauge icon from lucide

* fix the gauge icon
2021-10-20 20:16:43 +02:00
newton181
e991fab24e
Enhace translations and add new key for search hint (#45)
* Make search hint translatable

* Add new key in string file for search hint

* Enhace and update spanish translations
2021-10-20 20:05:37 +02:00
Jarne Demeulemeester
07d9ae676c
Add some spacing at bottom of media info fragment 2021-10-12 19:35:16 +02:00
Jarne Demeulemeester
234d44e9ce
Add placeholder (error) image for people
Fix #42
2021-10-12 19:21:54 +02:00
Jarne Demeulemeester
742ec71e56
Make ripple rounded just like other ui elements 2021-10-11 21:30:19 +02:00
jarnedemeulemeester
6beb5e8236
Move navigationBar color to v27 and v31 2021-10-10 22:00:58 +02:00
jarnedemeulemeester
8984493bb0
Remove InitializingFragment 2021-10-10 22:00:02 +02:00
jarnedemeulemeester
ac7c3405da
Add some icons to settings 2021-10-03 15:49:02 +02:00
jarnedemeulemeester
4c36785461
Add more shape styles + switch to material dialogs 2021-10-03 15:37:29 +02:00
jarnedemeulemeester
da39db03d0
Global shape theming 2021-10-03 11:43:34 +02:00
jarnedemeulemeester
976b56ce00
Add Android 12 dynamic colors 2021-10-03 11:07:28 +02:00
jarnedemeulemeester
73fc37b4f1
Update material colors, dark mode pure black 2021-10-02 21:10:10 +02:00
jarnedemeulemeester
f4d2859090
Allow video to extend into the display cutout 2021-09-19 18:55:27 +02:00
Jarne Demeulemeester
1cbd08c517
Merge pull request #33 from newton181/newton181-spanish
Translate to spanish string files
2021-09-19 16:57:52 +02:00
jarnedemeulemeester
19e33c6404
Move some strings to strings.xml 2021-09-19 11:53:36 +02:00
jarnedemeulemeester
64b86f2b40
MPVPlayer: Support for software decoding + clean up 2021-09-18 15:17:20 +02:00
jarnedemeulemeester
87edeabb9a
MPVPlayer: Use preferred languages 2021-09-16 19:00:11 +02:00