NewPipe/app/src/main/java/org/schabi/newpipe/util
TobiGr 80157fc1be Refactor generating InfoItemDialog's
This commit refactors the way `InfoItemDialog`s are generated. This is necessary because the old way used  the `StreamDialogEntry` enum for most of the dialogs' content generation process. This required static variables and methods to store the entries which are used for the dialog to be build (See e.g.`enabledEntries` and methods like `generateCommands()`). In other words, `StreamDialogEntry` wasn't an enumeration anymore.

To address this issue, a `Builder` is introduced for the `InfoItemDialog`'s genration. The builder also comes with some default entries and and a specific order. Both can be used, but are not enforced. 

A second problem that introduced a structure which was atypical for an enumeration was the usage of non-final attributes within `StreamDialogEntry` instances. These were needed, because the default actions needed to overriden in some cases.

To address this problem, the `StreamDialogEntry` enumeration was renamed to `StreamDialogDefaultEntry` and a new `StreamDialogEntry` class is used instead.
2022-02-20 20:17:04 +01:00
..
external_communication Adds comment to HASHTAGS_PATTERN 2021-12-20 14:13:40 -05:00
urlfinder Auto-format using Ktlint 2020-05-01 20:13:21 +02:00
BitmapUtils.java Use final where possible 2020-08-16 10:25:09 +02:00
CommentTextOnTouchListener.java Initial work: use disposables for timestamps parsing in YouTube video descriptions and YouTube comments 2021-06-11 12:12:08 +02:00
Constants.kt Combine the two Constants files into one file. 2021-01-15 12:13:47 +05:30
CookieUtils.java Use final where possible 2020-08-16 10:25:09 +02:00
DeviceUtils.java Disable media tunneling on Philips QM16XE 2021-12-04 22:23:09 +01:00
ExtractorHelper.java Fix disposables handling for text linkifier 2021-06-11 12:12:12 +02:00
FallbackViewHolder.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
FilenameUtils.java Apply the requested changes and little improvements 2021-01-16 13:23:42 +01:00
FilePickerActivityHelper.java Support SAF properly 2021-06-08 10:40:44 +02:00
InfoCache.java Use final where possible 2020-08-16 10:25:09 +02:00
KeyboardUtil.java Abstracted methods for the Android keyboard 2022-01-24 21:08:39 +01:00
KioskTranslator.java Fix Dark elements in Light Theme 2021-03-27 17:46:05 +03:00
LayoutManagerSmoothScroller.java Use final where possible 2020-08-16 10:25:09 +02:00
ListHelper.java Apply the requested changes and little improvements 2021-01-16 13:23:42 +01:00
Localization.java Added plural forms for download related strings (#6930) 2021-08-29 13:28:01 +02:00
NavigationHelper.java Simplified toast showing behavior 2022-01-23 15:34:11 +01:00
NewPipeTextViewHelper.java Adress new requested changes 2021-10-16 15:32:56 +02:00
OnClickGesture.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
PeertubeHelper.java Apply the requested changes and little improvements 2021-01-16 13:23:42 +01:00
PermissionHelper.java Fix a few SonarLint warnings 2021-09-05 19:54:28 +02:00
PicassoHelper.java Remove placeholder image while loading thumbnails 2021-08-24 10:56:25 +02:00
RelatedItemInfo.java Rename related streams to related items 2021-03-31 22:33:22 +02:00
SavedState.kt Changed package as the old one is deprecated 2021-08-26 18:09:27 +02:00
SaveUploaderUrlHelper.java Load uploaderUrl when showing Channel Details from Play Queue 2022-01-25 11:00:34 +08:00
SecondaryStreamHelper.java Use final where possible 2020-08-16 10:25:09 +02:00
SerializedCache.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
ServiceHelper.java Bandcamp support 2021-03-14 17:52:15 +01:00
SliderStrategy.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
StateSaver.java Fix NullPointerException: Attempt to get length of null array in MainActivity (#5999) 2021-04-06 14:13:13 +02:00
StreamDialogDefaultEntry.java Refactor generating InfoItemDialog's 2022-02-20 20:17:04 +01:00
StreamDialogEntry.java Refactor generating InfoItemDialog's 2022-02-20 20:17:04 +01:00
StreamItemAdapter.java Update most dependencies 2020-11-22 14:03:10 +01:00
StreamTypeUtil.java Improved streamType check and documentation 2021-09-25 10:31:42 +02:00
ThemeHelper.java Fix channel item span count for SubscriptionFragment 2021-07-31 11:02:57 +02:00
TLSSocketFactoryCompat.java Removed unused imports 2021-11-06 21:07:00 +01:00
ZipHelper.java Move Stored(File|Directory)Helper into NewPipe 2021-06-08 10:40:44 +02:00