vt
9f8055f018
remove existing comment replies screens before adding new one
2026-02-19 12:07:22 +05:30
Aayush Gupta
224a5d0cb9
Minor improvements
...
- Use early return in case of nulls
- Use better variable names
- Remove non-required newlines, imports and add missing ones
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-02-10 16:33:43 +08:00
Yevhen Babiichuk (DustDFG)
1eedfd7eee
Convert /newpipe/util/StreamTypeUtil to kotlin
2026-02-10 10:09:18 +02:00
Yevhen Babiichuk (DustDFG)
2c7654a579
Covert newpipe/util/DependentPreferenceHelper to kotlin
2026-02-10 10:09:18 +02:00
Yevhen Babiichuk (DustDFG)
09a746dd6a
Convert newpipe/util/ServiceHelper to kotlin
2026-02-10 10:09:18 +02:00
Yevhen Babiichuk (DustDFG)
d665a4f016
Convert newpipe/util/NewPipeTextViewHelper to kotlin
2026-02-10 10:09:18 +02:00
Yevhen Babiichuk (DustDFG)
48467669b6
Convert newpipe/util/PeertubeHelper to kotlin
2026-02-10 09:51:14 +02:00
Yevhen Babiichuk (DustDFG)
780e6a4848
Convert newpipe/util/PlayButtonHelper to kotlin
2026-02-10 09:51:13 +02:00
Aayush Gupta
8c5f13ab5c
ktlint: Fix function-signature violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:32:03 +08:00
Aayush Gupta
81ddd5a115
ktlint: Fix no-empty-first-line-in-method-block violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:32:02 +08:00
Aayush Gupta
7d5647b0ba
ktlint: Fix standard_argument-list-wrapping violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:44 +08:00
Aayush Gupta
9b7874ff51
ktlint: Fix blank-line-between-when-conditions violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:44 +08:00
Aayush Gupta
1466dd17b1
ktlint: Fix indentation violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:44 +08:00
Aayush Gupta
dcb2460c81
ktlint: Fix spacing-between-declarations-with-comments violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:44 +08:00
Aayush Gupta
c76d14dfd4
ktlint: Drop unused trailing commas
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:14 +08:00
Aayush Gupta
0641c19388
ktlint: Fix multi-line if-else violations
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:14 +08:00
Aayush Gupta
f23d8eff57
ktlint: Order imports in lexicographic order
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-24 00:31:13 +08:00
TobiGr
4ed2b9748f
Merge branch 'master' into dev
2026-01-11 22:53:11 +01:00
Tobi
d4a124a3c4
Merge pull request #12931 from TobiGr/fix/audio-lang
...
[Player] Use original audio language by default
2026-01-07 03:21:39 -08:00
Yevhen Babiichuk (DustDFG)
f1b111212d
Convert newpipe/util/FilenameUtils.java to kotlin
...
Co-authored-by: Aayush Gupta <aayushgupta219@gmail.com>
2026-01-01 11:04:19 +02:00
Yevhen Babiichuk (DustDFG)
873b2be9ca
Convert newpipe/util/text/TimestampLongPressClickableSpan.java to kotlin
...
Also convert one class used by it into java record
2026-01-01 11:04:19 +02:00
Yevhen Babiichuk (DustDFG)
4ef4ed15f1
Convert newpipe/util/image/PreferredImageQuality to kotlin
2026-01-01 11:04:19 +02:00
Yevhen Babiichuk (DustDFG)
fef8a2455c
Convert newpipe/util/image/ImageStrategy to kotlin
2026-01-01 11:04:19 +02:00
Aayush Gupta
6c238fafbe
fixup! Convert newpipe/util/KioskTranslator.java to kotlin
...
Copyright and license header are not doc-comments. Move them to the top of the file.
Also re-write it to follow the SPDX formatting as we have followed in the recent Kotlin
conversion.
Additionally, use a better name for the context parameter.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-12-31 17:05:17 +08:00
Yevhen Babiichuk (DustDFG)
2dde0fef58
Convert newpipe/util/KioskTranslator.java to kotlin
...
Cherry picked from #12947 / 4649e46d1ee4c691f2923c9b5c35c154c77b29a4
2025-12-27 23:13:17 +01:00
Yevhen Babiichuk (DustDFG)
c2f526d5b3
Use context.getString() shorthand instead of context.getResources().getString()
...
Cherry-picked from #12949 / 4360c1b8735c073b95a162324b2814cc5a5b4ecd
2025-12-27 23:12:37 +01:00
tobigr
a7b226c354
[Player] Use original audio language by default
2025-12-22 10:15:18 +01:00
Isaac
c4e6e4d4c4
Notifications are no longer requested again after rotating the phone
2025-10-19 03:41:52 +11:00
Howar
0ebd01e65e
fix(playback): handle long-press on “Play All” button for issue #12433
2025-10-11 02:01:52 +11:00
Stypox
00f6203904
Merge pull request #12605 from TeamNewPipe/open-in-browser
2025-09-30 17:45:29 +02:00
Isira Seneviratne
89c4eb5237
Refactor player intent logic
2025-09-08 07:56:13 +05:30
Profpatsch
01f9a3de33
Fix Checkstyle & remove unused fields
2025-09-06 15:09:11 +02:00
Profpatsch
3803d49489
Player/handleIntent: separate out the timestamp request into enum
...
Instead of implicitely reconstructing whether the intent was
intended (lol) to be a timestamp change, we create a new kind of
intent that *only* sets the data we need to switch to a new timestamp.
This means that the logic of what to do (opening a popup player) gets
moved from `InternalUrlsHandler.playOnPopup` to the
`Player.handleIntent` method, we only pass that we want to jump to a
new timestamp. Thus, the stream is now loaded *after* sending the
intent instead of before sending.
This is somewhat messy right now and still does not fix the issue of
queue deletion, but from now on the queue logic should get more
straightforward to implement.
In the end, everything should be a giant switch. Thus we don’t
fall-through anymore, but run the post-setup code manually by calling
`handeIntentPost` and then returning.
2025-09-06 15:06:53 +02:00
Profpatsch
5750ef6aa8
Player/handleIntent: start converting intent data to enum
...
The goal here is to convert all player intents to use a single enum
with extra data for each case. The queue ones are pretty easy, they
don’t carry any extra data. We fall through for everything else for
now.
2025-09-06 15:04:06 +02:00
Profpatsch
e14ec3a4f9
NavigationHelper: inline trivial getPlayerIntent use
2025-09-06 15:04:06 +02:00
Profpatsch
b592403a66
NavigationHelper: push out resumePlayback one layer
2025-09-06 15:04:06 +02:00
Profpatsch
90e1ac56ef
NavigationHelper: inline getPlayerEnqueueIntent
...
Funnily enough, I’m pretty sure that whole comment will be not
necessary, because we never check `resumePlayback` on handling the
intent anyway.
2025-09-06 15:04:06 +02:00
Fynn Godau
83a0abddcc
Fix and simplify openUrlInBrowser
...
The code was not previously working in case no default browser is set[1]
AND NewPipe is set as default handler for the link in question.
We improve it by telling the system to choose the target app as if the
URI was `http://`, which works even if the user has not set a default
browser.
[1]: also the case if platform refuses to tell an app what the user's
default browser is, which I observed on CalyxOS.
2025-09-05 17:49:58 +02:00
Stypox
f27ec53c08
Even more centralized error handling in ErrorInfo
2025-09-05 12:39:16 +02:00
Stypox
38064be702
Add more specific error messages and deduplicate their handling
2025-08-28 17:05:52 +02:00
TobiGr
74562db965
Use androidx compat alert dialog
2025-08-27 11:45:31 +02:00
Profpatsch
386d5197d8
Permission: display explanatory dialog for Android > R
...
On Android > R, ACTION_MANAGE_OVERLAY_PERMISSION always brings the
user to the app selection screen.
https://developer.android.com/about/versions/11/privacy/permissions#manage_overlay
This is highly confusing behaviour from the system, so let’s add an
instruction before navigating to the settings menu.
2025-08-27 11:38:25 +02:00
Tobi
ff3526b28d
Merge pull request #12460 from Isira-Seneviratne/Short-count-refactor
...
Fix short count formatting for Android versions below 7.0
2025-08-01 10:56:41 -07:00
Stypox
b7b836e941
Update the names of YT kiosks
2025-07-31 23:43:19 +02:00
Stypox
7cecd11f72
[YouTube] Add icons and strings for new trending pages
2025-07-31 23:43:19 +02:00
litetex
70841db92f
Cleanup `Localization` formatting
2025-07-28 15:11:27 +02:00
Isira Seneviratne
9f11db8e06
Improve scale display
2025-07-28 09:02:52 +05:30
Isira Seneviratne
9f526e8e8f
Fix short count formatting for Android versions below 7.0
2025-07-24 07:56:44 +05:30
litetex
f48e73eb2a
Cleaned up some code related to app language
...
* Use build constants when possible
* Inline variables
* Don't use var for normal-sized types (that way it's easier to review)
* Split code into methods
2025-07-20 21:52:07 +02:00
Isira Seneviratne
b8f9c125cd
Add link for future reference
2025-07-20 05:03:20 +05:30