Commit graph

63 commits

Author SHA1 Message Date
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
Isira Seneviratne
91de410943 Use RxJava instead of AsyncTask in LicenseFragmentHelper. 2020-11-05 11:06:51 +05:30
Isira Seneviratne
bda8caa510 Use Comparator's comparing(), nullsLast() and reversed() methods. 2020-11-01 14:44:04 +05:30
TacoTheDank
a6fa8cd4df Use FragmentActivity for AboutActivity's viewpager2 2020-10-31 15:54:39 -04:00
TacoTheDank
69ad9d5197 Migrate AboutActivity to viewpager2 2020-10-17 19:15:10 -04:00
TacoTheDank
0e33cc5d73 Fix some deprecations 2020-09-06 12:52:43 +02:00
nmurali94
3deeb88aee Restore license pop up after orientation change 2020-08-16 12:23:40 +02:00
wb9688
25b56bf5e4 Use final where possible 2020-08-16 10:25:09 +02:00
bopol
1aeff68c92 avoid duplicate: use openUrlInBrowser instead of openWebsite 2020-05-31 12:17:54 +02:00
wb9688
78a2aa6f81 Fix viewing licenses 2020-05-28 11:39:17 +02:00
wb9688
ac264464ef Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
Mauricio Colli
8e6ef3df44 Add Groupie library to the credit list in the about page 2020-03-14 00:12:43 -03:00
Stypox
662d9769cb Remove empty about menu 2020-02-22 11:30:57 +01:00
bopol
49bdc1b350 real markdown support for descriptions
and update third-party licences in about page
2020-02-08 10:48:36 +01:00
bopol
a74f0873a3 fix wrong language shown many popup dialogs
Changed android.R.string.ok, which is "OK", into R.string.finish, which is also OK, but from our strings
Then for a small amount of languages that don't have Android translation, it will show the good string.
2020-02-01 09:44:49 +01:00
bopol
eaed951dbd app language: refactoring
renamed NewPipe's language into App language, and same for all the
concerning thing (keys, comments…)

we now call assureCorrectAppLanguage(CONTEXT) in activities needing it
instead of changeAppLanguage(getAppLocale(CONTEXT), RESOURCES)
changeAppLanguage becomes private.
2020-01-29 21:21:00 +01:00
B0pol
bf96bdf606 Merge branch 'dev' into dev 2020-01-19 18:09:17 +01:00
Karol Kaminski
a1b4634171 removed dot menu where its no longer needed 2020-01-13 20:28:32 +01:00
bopol
679ddf4481 fixed some activities where the wrong languages would be set 2020-01-10 15:50:15 +01:00
bopol
3dd492e82b app language now changes time formatting (3hrs ago), was system language b4 2020-01-09 15:51:41 +01:00
bopol
daa4d852f2 removed unused imports 2020-01-09 12:15:01 +01:00
bopol
af690618d4 changed the way to change language, now is «NewPipe's language» selector 2020-01-09 09:40:05 +01:00
Robin
edd5ad2d13 Migrate to AndroidX 2019-10-04 14:59:08 +02:00
yausername
cc7e21a93b fix scrolling in video detail fragment. fixes #2627 2019-09-29 22:05:29 +05:30