Commit graph

86 commits

Author SHA1 Message Date
TobiGr
6e6e4de348 Fix deprecation of Bundle.getSerializable(String) by using BundleCompat
This fixes the following warning during compilation:

file:app/src/main/java/org/schabi/newpipe/about/LicenseFragment.kt:36:55 'fun getSerializable(p0: String?): Serializable?' is deprecated. Deprecated in Java.
2025-12-10 14:42:52 +01:00
Isira Seneviratne
15f79507c4 Enable per-app language preferences for Android < 13 2025-07-20 04:50:49 +05:30
litetex
2c2904d59c Replaced `Icepick with Bridge and Android-State`
* IcePick fails on Java 21 (default in Android Studio 2024.2)
* Bridge is the most modern alternative that is currently available. It is backed by ``Android-State`` and can be configured with various frameworks
* In the long term this should be replaced with something better
2024-10-23 21:28:07 +02:00
Isira Seneviratne
4f53b3015b Store/retrieve parcelable arrays as lists instead. 2023-12-23 11:38:40 +01:00
TobiGr
7ab1e7f244 Use "done" button to close license dialogs.
Rename string res "recaptcha_done_button" to "done".
2023-09-23 13:56:49 +02:00
TobiGr
d5578b4099 Restore license dialog buttons to open the SoftwareComponent's website
Do not keep the active License but the active SoftwareComponent.
2023-09-23 13:49:09 +02:00
TobiGr
7fe259cbbe [AboutFragment / LicenseFragment] Fix license restore after rotation
Do not restore last opened license after a rotation change when the license was closed earlier.

This commit adds onCancelListener and onDismissListener to the AlertDialogs which are used to display the licenses.
2023-09-23 13:49:09 +02:00
Stypox
de067fe798 Correctly open urls in browser on Android 11+
- Fix misconfiguration in manifest ('http|https|market' is not valid)
- Split ShareUtils functions taking a boolean parameter into pairs of functions with better names and less runtime checks
- Move all Kore-related functions to KoreUtils
- Remove the toast_no_player string
2023-02-25 09:13:59 +01:00
Yuuu2990
2c600fb3c7 Add Link to FAQ in the app (#9164)
* Link to FAQ in the app #4447

* remove redundant comments produced by me.

* Update app/src/main/res/values/strings.xml

Update FAQ description

Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>

* Format the CodeStyle and readjust the layout.

* Update app/src/main/res/layout/fragment_about.xml

Remove redundant id.

Co-authored-by: Stypox <stypox@pm.me>

* Update app/src/main/res/layout/fragment_about.xml

Remove redundant id.

Co-authored-by: Stypox <stypox@pm.me>

* Update app/src/main/res/values/strings.xml

Keep the uppercase for consistency.

Co-authored-by: Stypox <stypox@pm.me>

* Update app/src/main/res/values/strings.xml

Modify the description of FAQ.

Co-authored-by: Stypox <stypox@pm.me>

Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
Co-authored-by: Stypox <stypox@pm.me>
2022-10-26 09:59:51 +02:00
Isira Seneviratne
29d0bf1de7 Clean up getLicenseStylesheet(). 2022-08-04 11:17:30 +02:00
Isira Seneviratne
a9c4079f67 Make block parameter an extension lambda. 2022-08-01 08:29:59 +05:30
Isira Seneviratne
6ec9407e8f Convert LicenseFragmentHelper methods to top-level declarations. 2022-08-01 08:27:09 +05:30
Isira Seneviratne
bfabd7ae2e Use IO extensions.
Co-authored-by: Stypox <stypox@pm.me>
2022-07-21 05:15:39 +05:30
TacoTheDank
ad4a239a9f De-duplicate showLicense methods 2022-03-18 13:48:07 -04:00
TacoTheDank
e98fa48627 Clean up the about package a bit 2022-03-18 13:18:23 -04:00
TacoTheDank
dcb1ba4a39 Replace CircleImageView with ShapeableImageView 2022-02-23 15:11:25 -05:00
litetex
27a58f9cd9 Added credit to the project which inspired the preference search 2022-01-24 21:08:38 +01:00
litetex
6f0ea582d9 Fixed the app restarting not working properly
* Using [``process-phoenix``](https://github.com/JakeWharton/ProcessPhoenix)
2021-09-06 20:47:44 +02:00
Stypox
bde378618d Merge pull request #7024 from Stypox/string-fixes
Never use ``android.R.string``s; remove unused ``add`` string
2021-08-31 12:00:07 +02:00
Stypox
14ebb41264 Rename string finish to ok, as its content was "OK" 2021-08-30 16:36:57 +02:00
litetex
9ecec58bbc Changed package as the old one is deprecated 2021-08-26 18:09:27 +02:00
Stypox
c338150d90 Add Picasso to licences and remove Universal Image Loader 2021-08-24 10:56:25 +02:00
Isira Seneviratne
f6bceffc20 Use Kotlin methods in LicenseFragment. 2021-07-18 07:47:12 +05:30
TiA4f8R
00dc669975 Fix the compile error 2021-06-11 12:19:29 +02:00
Stypox
dbbca9085c Improve text linkifier function parameters 2021-06-11 12:12:11 +02:00
TiA4f8R
0dcd1360a9 Don't use a chooser for other intents than opening a content in a browser or sharing a content to other apps
Use an ACTION_CHOOSER intent has a negative impact for user experience, because user cannot set as default an activity for an intent
2021-06-11 12:12:05 +02:00
TiA4f8R
7fc9258b0b Move some classes to a new subpackage and adress requested changes
Rename URLHandler and KoreUtil classes to InternalUrlsHandler and KoreUtils.
Move InternalUrlsHandler, KoreUtils, TextLinkfier, ShareUtils classes to external_communication subpackage.
Remove unused param showPreviewText in shareText method of ShareUtils class.
Add initial work to be able to display an image preview of the content shared (not for downloads).
Use a better regular expression to parse timestamps in plain text descriptions.
2021-06-11 12:12:03 +02:00
Peyman-hme
6333c8889b Add Open website string resources 2021-06-08 11:29:25 +02:00
Peyman-hme
04b898595c Change "Ok" Button to "Dismiss" and also change "Open Website" button to neutral button 2021-06-08 11:29:00 +02:00
Peyman-hme
185f0cede6 Add "Open website" button in webview in license fragment, issue #6296 2021-06-08 11:29:00 +02:00
camo0112
3e232ba4d3 IssueFixed#5968 2021-03-31 20:48:02 +05:30
TacoTheDank
6ceac4332d Convert AboutFragment clickListeners to a function extension 2021-03-29 19:07:12 -04:00
TacoTheDank
90a647ac24 Converted the about package to Kotlin 2021-03-29 19:06:32 -04:00
TacoTheDank
8d53116840 Renamed things pertaining to the about package 2021-03-29 19:05:57 -04:00
mhmdanas
8ce697abec Remove License#contentUri
It seems to not be used anywhere.
2021-02-08 19:54:30 +03:00
TiA4f8R
e44495af9a Apply the requested changes and little improvements
Apply the requested changes, use ShareUtils.shareText to share an stream in the play queue and optimize imports for Java files, using Android Studio functionality.

Apply the requested changes and do little improvements
Apply the requested changes, use ShareUtils.shareText to share an stream in the play queue and optimize imports for Java files, using Android Studio functionality.
2021-01-16 13:23:42 +01:00
TiA4f8R
d2cb003585 External sharing improvements
Improve NewPipe's share on some devices + fix crash when no browser is set on some devices

Catching ActivityNotFoundException when trying to open the default browser
Use an ACTION_CHOOSER intent and put as an extra intent the intent to
open an URI / share an URI when no default app is set.

Add a LinkHelper class which set a custom action when clicking web links
in the description of a content. This class also helps to implement a confirmation dialog when trying to open web links in an external app.
2021-01-16 13:23:06 +01:00
Isira Seneviratne
6e41282714 Use view binding in LicenseFragment. 2021-01-14 11:16:00 +05:30
Isira Seneviratne
55c770cd1b Use Objects.requireNonNull(). 2021-01-02 09:36:33 +05:30
TacoTheDank
30cd5ebe30 Update displayed licenses 2020-12-31 19:26:41 -05:00
Isira Seneviratne
02f7f1d501 Use view binding in AboutActivity. 2020-12-19 04:19:58 +05:30
Stypox
57c28a9a9c Fix ktlint errors 2020-11-22 14:03:10 +01:00
Stypox
34dd7c0fbf Update most dependencies 2020-11-22 14:03:10 +01:00
Isira Seneviratne
a2500345d6 Use try-with-resources. 2020-11-21 13:47:13 +05:30
Isira Seneviratne
c8760eff56 Convert SoftwareComponent to Kotlin and use the Parcelize annotation. 2020-11-21 12:47:30 +05:30
Isira Seneviratne
1d73abd560 Convert License to Kotlin and use the Parcelize annotation. 2020-11-21 12:47:26 +05:30
TacoTheDank
c1aca23fa4 Lint: Redundant 'new' expression in constant array creation 2020-11-18 17:52:30 -05:00
TacoTheDank
497e145c70 Lint: Make a bunch of stuff final 2020-11-18 17:50:00 -05:00
opusforlife2
71b82ae651 Remove GPLv2 - not needed 2020-11-15 14:04:10 +00:00
opusforlife2
9fd3adfa41 Correct Gigaget's license
It's GPLv3, not GPLv2.
2020-11-15 13:41:43 +00:00