Commit graph

4132 commits

Author SHA1 Message Date
UlrichKu
ce3d6f2f8f
Check for status "type" before casting (class cast exception Placeholder) (#3203)
* Check for status "type" before casting.

* Update app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadViewModel.kt

Co-authored-by: Nik Clayton <nik@ngo.org.uk>

* Make sure no placeholder is returned as status

---------

Co-authored-by: Nik Clayton <nik@ngo.org.uk>
2023-01-27 19:48:48 +01:00
Konrad Pozniak
c31e5345dc Merge remote-tracking branch 'weblate/develop' into develop
# Conflicts:
#	app/src/main/res/values-cy/strings.xml
#	app/src/main/res/values-lv/strings.xml
2023-01-27 17:43:07 +01:00
Konrad Pozniak
f477e1eb70
Merge pull request #3207 from nailyk-weblate/weblate-tusky-tusky
Translations update from Weblate
2023-01-27 17:28:38 +01:00
Konrad Pozniak
fb18c0de62
Merge pull request #3219 from nailyk-weblate/weblate-tusky-tusky-app
Translations update from Weblate
2023-01-27 17:28:11 +01:00
Ihor Hordiichuk
6732841425 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Eric
9ef7e80674 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Eduardo
d719d30f77 Translated using Weblate (Portuguese (Brazil))
Currently translated at 82.5% (458 of 555 strings)

Co-authored-by: Eduardo <edu200399lim@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pt_BR/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Aitor Salaberria
effa52f183 Translated using Weblate (Basque)
Currently translated at 79.2% (440 of 555 strings)

Co-authored-by: Aitor Salaberria <trslbrr@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eu/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
puf
1bdc5164b2 Translated using Weblate (Welsh)
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: puf <puffinux@tutanota.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Quentí
bece600512 Translated using Weblate (Occitan)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Quentí <quentinantonin@free.fr>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/oc/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Mārtiņš Bruņenieks
3c7f283ced Translated using Weblate (Latvian)
Currently translated at 88.4% (488 of 552 strings)

Translated using Weblate (Latvian)

Currently translated at 86.7% (479 of 552 strings)

Translated using Weblate (Latvian)

Currently translated at 84.4% (466 of 552 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Hồ Nhất Duy
a16f875706 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (555 of 555 strings)

Translated using Weblate (Vietnamese)

Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Oliebol
bddb75fea0 Translated using Weblate (Dutch)
Currently translated at 96.5% (533 of 552 strings)

Co-authored-by: Oliebol <schrijfmedan@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nl/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
TAKAHASHI Shuuji
4d943ba415 Translated using Weblate (Japanese)
Currently translated at 94.2% (520 of 552 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Rhoslyn Prys
96639a0096 Translated using Weblate (Welsh)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Rhoslyn Prys <post@meddal.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Aitor Salaberria
f803fbf9c8 Translated using Weblate (Basque)
Currently translated at 84.2% (16 of 19 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/eu/
2023-01-26 19:35:54 +00:00
Levi Bard
412a28e9a9
Reinstate optional login via custom browser tab (#3165)
* Reinstate optional login via custom browser tab

* Clarify the buttons for the different login options

* Add informative labels for the different login options

* Move "Login with Browser" to the options menu
2023-01-25 19:26:29 +01:00
Konrad Pozniak
56451f029e
Create Release.md (#3200)
* Create Release.md

* improve wording

* explain how to merge Weblate
2023-01-24 20:23:15 +01:00
Mārtiņš Bruņenieks
1fa0e9ae04 Translated using Weblate (Latvian)
Currently translated at 84.4% (466 of 552 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-22 19:35:55 +00:00
Hồ Nhất Duy
7730e6b6f1 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-22 19:35:54 +00:00
Oliebol
576e48bcc4 Translated using Weblate (Dutch)
Currently translated at 96.5% (533 of 552 strings)

Co-authored-by: Oliebol <schrijfmedan@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nl/
Translation: Tusky/Tusky
2023-01-22 19:35:54 +00:00
TAKAHASHI Shuuji
a5f766f251 Translated using Weblate (Japanese)
Currently translated at 94.2% (520 of 552 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-22 19:35:54 +00:00
Rhoslyn Prys
4cdf3bedb5 Translated using Weblate (Welsh)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Rhoslyn Prys <post@meddal.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-22 19:35:54 +00:00
Nik Clayton
b8f4de9922
Sniff MIME type for audio/video files before upload (#3190)
MIME type detection for files based on extensions (the `getType()` method)
returns incorrect results from DownloadProvider and FileProvider for (at
least) .m4a files.

Investigation details are in https://github.com/tuskyapp/Tusky/issues/3189

Be safe, and use `MediaMetadataRetriever` to sniff the content of the files
to determine the correct type.

Fixes https://github.com/tuskyapp/Tusky/issues/3189
2023-01-21 14:54:40 +01:00
Konrad Pozniak
db91b4db0e
Merge pull request #3184 from nailyk-weblate/weblate-tusky-tusky
Translations update from Weblate
2023-01-17 20:05:18 +01:00
Mikalai
066c7428f9 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Sveinn í Felli
100fbe796a Translated using Weblate (Icelandic)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/is/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
TAKAHASHI Shuuji
ec5fa814c4 Translated using Weblate (Japanese)
Currently translated at 91.3% (504 of 552 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
xzFantom
2872253cb6 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Translated using Weblate (Belarusian)

Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: xzFantom <xzfantom@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Mikalai
db433e6f59 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Andrej Zabavin
023033243c Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Andrej Zabavin <andre.zabavin@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Mikalai
a76e6dff1e Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Hồ Nhất Duy
1dc0f8d78e Translated using Weblate (Vietnamese)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Ihor Hordiichuk
cb7e4c76b6 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Eric
e09efd48ad Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Gera, Zoltan
4b02ba0816 Translated using Weblate (Hungarian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Gera, Zoltan <gerazo@manioka.hu>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/hu/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Konrad Pozniak
acb0e38b88
fix crash in AccountListFragment when network calls are cancelled (#3175) 2023-01-15 15:21:42 +01:00
Konrad Pozniak
8058c4bc79
fix crash when user clicks url on in partially loaded thread (#3174) 2023-01-15 15:18:07 +01:00
Artsiom
2df6a83e42
Add Belarusian language to the in-app language picker (#3170)
* Add Belarusian language to the in-app language picker

* added Belarusian to locales_config.xml
2023-01-15 15:03:46 +01:00
Konrad Pozniak
01b329c8e3
Merge pull request #3176 from nailyk-weblate/weblate-tusky-tusky-app
Translations update from Weblate
2023-01-14 20:02:02 +01:00
Konrad Pozniak
fe30b6cc85
Merge pull request #3173 from nailyk-weblate/weblate-tusky-tusky
Translations update from Weblate
2023-01-14 19:59:06 +01:00
xzFantom
c5980217f1 Translated using Weblate (Belarusian)
Currently translated at 15.7% (3 of 19 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/be/
2023-01-14 18:55:05 +00:00
Nik Clayton
7d444d1f8c
Fix incorrect log message, s/favourite/bookmark/ (#3172) 2023-01-13 20:03:47 +01:00
Mārtiņš Bruņenieks
e68f45058a Translated using Weblate (Latvian)
Currently translated at 80.4% (439 of 546 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
xzFantom
1e04973c6a Translated using Weblate (Belarusian)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: xzFantom <xzfantom@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
Motasem Jouda
ce522489af Translated using Weblate (Arabic)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: Motasem Jouda <matsm123@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ar/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
Nik Clayton
f28252bfd5
Keep all subclasses of PreferenceFragmentCompat (#3162)
* Mark *PreferencesFragment as @Keep

PreferenceFragment references them by string name, which doesn't work after
ProGuard has obfuscated the code in release mode. The name is no longer
valid and the app crashes.

Fixes https://github.com/tuskyapp/Tusky/issues/3161

* Prefer to keep Preference classes with a Proguard rule

Ensures that all PreferenceFragmentCompat are kept, to prevent the risk
that this could break in a new fragment where `@Keep` is accidentally
omitted.
2023-01-13 19:51:42 +01:00
Nik Clayton
d6e7905e01
Reduce horizontal swipe sensitivity in timelines (#3148)
* Reduce horizontal swipe sensitivity in timelines

Fixes https://github.com/tuskyapp/Tusky/issues/2725, fixes https://github.com/tuskyapp/Tusky/issues/2112, fixes https://github.com/tuskyapp/Tusky/issues/2530, fixes https://github.com/tuskyapp/Tusky/issues/2200, fixes https://github.com/tuskyapp/Tusky/issues/2176, fixes https://github.com/tuskyapp/Tusky/issues/2112, fixes https://github.com/tuskyapp/Tusky/issues/1912, fixes https://github.com/tuskyapp/Tusky/issues/1718, fixes https://github.com/tuskyapp/Tusky/issues/1336

* Set scale factor to 4

* Catch exceptions, just in case
2023-01-13 19:51:09 +01:00
Nik Clayton
e5e076b0d3
Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147)
* Convert BezelImageView to Kotlin

* Convert EndlessOnScrollListener to Kotlin

* Convert ComposeScheduleView to use view binding

* Convert ComposeScheduleView to Kotlin

* Convert ProgressImageView to Kotlin

* Apply reviewer feedback
2023-01-13 19:49:56 +01:00
Nik Clayton
aa96d02923
Implement HTTP proxy summary as a SummaryProvider (#3091)
* Handle preference fragments using the framework

The previous code started new preference "screens" as activities, even though
each one hosted a single fragment.

Modify this to use the framework's support for swapping in/out different
preference fragments.

PreferencesActivity:
- Remove the code for launching tab and proxy preferences
- Remove the code for setting titles, each fragment is responsible for that
- Implement OnPreferenceStartFragmentCallback to swap fragments in/out with
  the correct animation

PreferencesFragment:
- Use `fragment` property instead of `setOnPreferenceClickListener`
- Set the activity title when resuming

Everything else:
- Set the activity title when resuming

* Implement HTTP proxy summary as a SummaryProvider

Uses the frameworks's support for setting summaries instead of rolling our
own.

Also fix a tiny bug -- the minimum port number to connect to should be 1,
not 0.

* Lint
2023-01-13 19:28:46 +01:00