Commit graph

10687 commits

Author SHA1 Message Date
evermind
eec3cec52c searchfilters: replace Map<Integer, Object> with SparseArrayCompat 2022-12-03 21:46:45 +01:00
evermind
868be7a905 searchfilters: replace Map<Integer, Integer> with SparseIntArray 2022-12-03 21:46:45 +01:00
evermind
0dc3f105ad searchfilters: convert parameters where possible from ArrayList to List
Co-authored-by: Isira Seneviratne <31027858+Isira-Seneviratne@users.noreply.github.com>
2022-12-03 21:46:45 +01:00
evermind
531fa3882f searchfilters: remove onResume() onPause() calles
Those calles are no longer needed as the causing null ptr problem
was solved using the convertView paramter instead of locally cache
the TextView's in the Spinner Adapter.
2022-12-03 21:46:45 +01:00
evermind
dd13ec43fb searchfilters: use reworked getTranslatedFilterString() method
Adjust to changes in NewPipeExtractor's FilterGroup and FilterItem class.
2022-12-03 21:46:45 +01:00
evermind
9ca7c1f23d searchfilters: rework getTranslatedFilterString() method 2022-12-03 21:46:45 +01:00
evermind
ca68c32be2 cleanup SearchFragment: remove some not used parameters and method 2022-12-03 21:46:45 +01:00
evermind
9bceb64dfc searchfilters: unit test for SearchFilterLogic and BaseSearchFilterUiGenerator 2022-12-03 21:46:45 +01:00
evermind
b0e0bc5150 searchfilters: integrate 3rd UI SearchFragment/SearchFragmentLegacy 2022-12-03 21:46:45 +01:00
evermind
f8101097c4 searchfilters: 3rd Ui: action based UI (enhanched legacy menu)
This approach is more or less a hack but if all else fails. Could later
be dropped or right away.
2022-12-03 21:46:45 +01:00
evermind
d02c322319 searchfilters: integrate 2nd Ui into SearchFragment 2022-12-03 21:46:45 +01:00
evermind
c8320abbe6 searchfilters: configuration option to choose between search filter dialogs 2022-12-03 21:46:45 +01:00
evermind
44a4a3172f searchfilters: 2nd Ui: Action menu feel alike dialog
Dialog looks similar to a action menu based approach but is faster.
2022-12-03 21:46:35 +01:00
evermind
0ff1f6bdfb searchfilters: replace old filter interaction and integrate new dialog into SearchFragment 2022-12-03 21:37:08 +01:00
evermind
b375c65b78 searchfilters: add to strings.xml 'content filter', 'sort filter' and 'filter' 2022-12-03 21:37:07 +01:00
evermind
0578e0e64d searchfilters: 1st Ui: default dialog for search content and sort filters 2022-12-03 21:37:07 +01:00
evermind
9d9f7c49c8 searchfilters: common base classes for DialogFragment based UI's 2022-12-03 21:36:57 +01:00
Jared Fantaye
8fc5fa979d Added menu with tappable list items 2022-12-03 09:52:04 +01:00
TacoTheDank
074a8ff46a Update Desugaring to 1.1.8 2022-12-02 13:52:30 -05:00
evermind
5b0f4ebf73 searchfilters: dynamically generate UIs and evaluate selected sort and content filters
SearchFilterLogic.java:
=======================
This class handles all the user interaction with the content and sort filters
of NewPipeExtractor.

The class works standalone to just get the default selected filters eg.
during init phase. See in SearchFragment#initializeFilterData()

BaseSearchFilterUiGenerator.java:
=================================
It extends SearchFilterLogic and is used as a base class to implement the UI interface
for content and sort filter dialogs eg. SearchFilterDialogGenerator or
SearchFilterOptionMenuAlikeDialogGenerator.
2022-12-02 00:54:23 +01:00
Jared Fantaye
a2f2d562f6 Disabling night theme selection if auto theme is not used 2022-12-01 13:01:58 +01:00
Stypox
bd6b3c53c5
Merge pull request #9480 from TacoTheDank/bumpSonar
Update Sonarqube to 3.5
2022-11-30 00:14:33 +01:00
TacoTheDank
8282b8a6c0 Update Sonarqube to 3.5 2022-11-29 11:20:31 -05:00
Stypox
72a250b610
Merge pull request #9479 from Stypox/create-scaled-bitmap
Use smoother bitmap downscaling for thumbnails
2022-11-29 16:09:31 +01:00
Isira Seneviratne
b0516fbf1d
Use BitmapCompat.createScaledBitmap(). 2022-11-29 15:56:19 +01:00
Stypox
05903502c5
Merge pull request #8743 from shivambeohar/8615-gap-at-miniplayer-close-button-fix
Remove padding from the end of the mini-player
2022-11-29 12:31:55 +01:00
Stypox
2bf58abb89
Make miniplayer close button area larger 2022-11-29 12:07:30 +01:00
Stypox
9d01d88eed
Request permission to send notifications 2022-11-28 18:49:11 +01:00
Stypox
f07886fc5e
Add notifications permission 2022-11-28 18:23:47 +01:00
Tobi
2984649106
Merge pull request #9471 from yashpalgoyal1304/set-width-image-minimizer
Set image-minimizer to specify image width ...
2022-11-28 14:32:09 +01:00
Stypox
60671c99ed
Merge pull request #9474 from bravenewpipe/avoid-wrong-nullable-notnull-annotation-imports
Forbid wrong `@Nullable` and `@NotNull` annotation imports
2022-11-28 14:30:52 +01:00
Stypox
bce77aaec7
Block rxjava3 nullable/nonnull imports in checkstyle 2022-11-28 14:28:08 +01:00
evermind
f2e3020f9d checkstyle: declare org.jetbrains and javax.annotation Nullable's and NotNull/Nonnull as illegal imports 2022-11-28 13:33:50 +01:00
yashpalgoyal1304
e9ef9451e5
Minimize not-so-long images too 2022-11-27 03:22:37 +05:30
yashpalgoyal1304
7c1d06e023
Resolve scoping issue to get values of probeResult 2022-11-27 02:06:01 +05:30
AudricV
6b89b44dcd
Merge pull request #8961 from dhruvpatidar359/Toast-Popup
Remove the redundant/overlapping toast "Copied to clipboard" for Android 13+
2022-11-26 21:33:12 +01:00
yashpalgoyal1304
225f69b75b
Fix value of width 2022-11-27 01:56:53 +05:30
yashpalgoyal1304
44bc6bf069
Set image-minimizer to specify image width ...
Fix https://github.com/TeamNewPipe/NewPipe/issues/9469
for portrait like orientations
2022-11-26 23:29:11 +05:30
Jared Fantaye
e5af1c93ae Seeking no longer pauses the played video 2022-11-26 15:35:13 +01:00
Isira Seneviratne
d6617007d4 Use SparseArrayCompat instead of SparseArray in StreamItemAdapter.
Make additional small improvements as well.
2022-11-22 18:31:58 +05:30
Isira Seneviratne
8db90ba449 Use SparseArrayCompat for thumbnails. 2022-11-22 17:51:54 +05:30
Stypox
048b0972de Set compileSdk and targetSdk to 33 (Android 13)
android:exported in now required in the manifest on all activities/services/receivers/providers. It was set to true for those that need to interact with outside apps or the OS, while others have exported=false.
This also required updating LeakCanary to the latest version as the older version being used was not using android:exported in AndroidManifest.xml.
2022-11-18 08:33:13 +01:00
Isira Seneviratne
a7989795e8 Merge branch 'dev' into Refactor_VideoPlayerUi 2022-11-14 08:59:03 +05:30
Isira Seneviratne
a40f035810 Merge branch 'dev' into Refactor_VideoDetailFragment 2022-11-14 08:58:45 +05:30
Isira Seneviratne
aad5e26f31
Merge pull request #8870 from Isira-Seneviratne/Locale_forLanguageTag
Use Locale.forLanguageTag().
2022-11-10 19:56:34 +05:30
Tobi
627c6e29a2
Merge pull request #8316 from han-sz/fix_video_mouse_hover_overlay
Fix persistent hover overlay when in desktop/DeX mode or using a mouse/non-touch input
2022-11-09 17:10:01 +01:00
TobiGr
95c32d6f4a Merge remote-tracking branch 'Weblate/dev' into dev 2022-11-09 16:48:12 +01:00
Coool (github.com/Coool)
747df59741
Translated using Weblate (Latvian)
Currently translated at 92.5% (598 of 646 strings)
2022-11-09 16:46:12 +01:00
Coool (github.com/Coool)
a4e883c119
Translated using Weblate (Latvian)
Currently translated at 4.1% (3 of 72 strings)

Translation: NewPipe/Metadata
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/lv/
2022-11-09 16:46:12 +01:00
pjammo
289f9105d9
Translated using Weblate (Italian)
Currently translated at 100.0% (72 of 72 strings)

Translation: NewPipe/Metadata
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/it/
2022-11-09 16:46:12 +01:00