Commit Graph

199 Commits

Author SHA1 Message Date
lenchan139 6fc62d3c01 make a copy of file before upload (#1294) 2019-05-29 20:26:33 +02:00
Konrad Pozniak 83696b5c7f
Animate gif avatars (#1279)
* animate gif avatars

* add setting to enable avatar animation

* cleanup code
2019-05-26 08:46:08 +02:00
pandasoft0 5c61786e05 Add correct Content Description for the preview images at the Compose screen (#1188)
* Add correct Content Description for the preview images at the Compose screen. tuskyapp#1155

* Remove "unknown" string from resource. Format code

* Format code

* Update string resource for content description
2019-05-09 20:25:44 +02:00
kyori19 60d6927af6 Implement redraft feature. (#1190)
* Implement "Delete and Edit" feature

* Some changes to ComposeActivity

Support for uploaded medias, sensitive option.

Fix typo.

Change names of some extra keys.

* Use Glide instead of Picasso

* Pass ArrayList instead of json

* Change wording for re-draft

* Fix test
2019-04-21 15:16:39 +02:00
Konrad Pozniak 1b9e279064
fix issue with foreground service on Oreo+ (#1203) 2019-04-21 14:28:51 +02:00
Konrad Pozniak ef66deeae7 fix some lint warnings 2019-04-21 08:24:29 +02:00
Evgeny Petrov 8a6b439408 Added check if text in compose toot field has only whitespaces (#1193) 2019-04-20 12:17:54 +02:00
pandasoft0 76ce28980c Migrate to Glide (#1175)
* Replace Picasso library with Glide library tuskyapp#1082

* Replace Picasso library with Glide library tuskyapp#1082

* Update load emoji with glide

* Update context used for Glide

* Removed unused import

* Replace deprecated SimpleTarget with CustomTarget

* Fix crash at the view image fragment, remove override image size

* Replace Single.create with Single.fromCallable

* View image fragment refactor

* Fix after merge

* Try to load cached image first and show progress view on failure

* Try to load cached image first and show progress view on failure
2019-04-16 21:39:12 +02:00
pandasoft0 bc3ea2357b Cancel media uploads when closing ComposeActivity #838 (#1189)
* Cancel media uploads on remove the draft message

* Fix formatting
2019-04-12 22:10:52 +02:00
Konrad Pozniak 21a817a8d4
change cw icon color on on/off (#1181) 2019-04-08 13:04:54 +02:00
Evgeny Petrov 5163927e43 Added "Warning" icon instead of "CW" text. (#1138)
* Added «Warning» icon instead of «CW» text.
Icon source: https://ionicons.com/

* Updated icon to "sms_failed"
2019-04-01 19:19:37 +02:00
Bernd e839a2c9fe fix sharing to Tusky (#1140)
fixes duplicate title when sharing from Feedly or Google News
2019-03-23 12:50:24 +01:00
pandasoft0 f1b9f7e9fe Fix issue with floating media bar after permissions request (#1134) 2019-03-20 19:26:39 +01:00
Ivan Kupalov 520e0d6e7a List editing (#1104)
* List editing groundwork

* Add ability to add/remove accounts from list, delete lists

* Rename list, improve lists UI

* Add error handling, extract strings

* Revert gradle.properties

* Apply feedback suggestions

* Apply feedback

* Update license header
2019-03-16 13:36:16 +01:00
autumnontape 10fcee4798 Add autocompletion for custom emoji (#1089)
* Remove unnecessary //noinspection ConstantConditions

* Add autocompletion for custom emoji

* Update MentionTagTokenizer tests for emoji autocomplete support

* Move 1) emoji list retrieval notifying and 2) setting of emojiList field into setEmojiList() method of ComposeActivity

* Convert RelativeLayout in item_autocomplete_emoji.xml to LinearLayout

* Rename MentionTag* to Compose*

* Improve emoji autocomplete matching

* Make hashtag autocomplete results bold

* Use Context.getString()'s built-in formatting

* Add a divider between emoji autocomplete results that *start with* the token and those that *contain* it
2019-03-04 19:28:08 +01:00
Konrad Pozniak 8201f2539d
fix close button behavior in ComposeActivity (#1056) 2019-02-17 20:50:06 +01:00
Conny Duck eeaadea905 Revert "Generalize url scheme parsing/highlighting (#1008)"
This reverts commit 85610a8311.
2019-02-11 14:43:57 +01:00
Levi Bard d5173c2268 Add support for selecting account when sharing from outside apps (#1011)
* Add direct-share support (API 23+)

* Add account selection dialog for non-direct sharing
2019-02-06 10:23:02 +01:00
lenchan139 5876fbeb29 Attach subject when composing with shared content from other apps (#1020)
* +attach subject when composing with shared content from other apps

* Update strings.xml

* Update preferences.xml

* Update strings.xml

* remove option for add subject of shared to composeActivity

* Update preferences.xml
2019-02-05 20:12:37 +01:00
Levi Bard 85610a8311 Generalize url scheme parsing/highlighting (#1008)
* Add support for highlighting dat, ssb, ipfs url schemes. #847

* Generalize scheme parsing for url highlighting. #847

* Migrate LinkHelper to kotlin
2019-02-05 19:55:28 +01:00
Ivan Kupalov a3ee13d767 Add hashtag autocompletion, closes #769 (#1001)
* Add hashtag autocompletion, closes #769

* Apply review feedback
2019-01-28 11:04:05 +01:00
kyori19 75158a3aa0 Fix typo (#987)
* Optimize imports

* Fix typo in 'replyingStatusAuthor'
2019-01-14 21:57:22 +01:00
Konrad Pozniak a445c12094
Upgrade to AndroidX, move to MaterialComponents theme (#953)
* upgrade to AndroidX, upgrade libraries

* move to MaterialComponents theme

* make sure the compose button looks good everywhere

* fix tollbar title/button alignment on tablet

* move to new material color theming, consolidate colors and themes

* fix build, fix imports

* set error on TextInputLayout instead of EditText

* fix imports, TootButton when

* improve snackbar style

* fix task description color
2018-12-17 15:25:35 +01:00
Mélanie Chauvel (ariasuni) 5230bd29a6 Fix a lot of easy-to-fix warnings (#957) 2018-12-12 20:28:05 +01:00
Konrad Pozniak 73670b8576
Improve emoji picker accessibility (#944)
* set emoji shortcode as content description on ImageView

* hide bottom sheets on back press
2018-12-07 17:05:02 +01:00
Konrad Pozniak 1413a1155b
remove unnecessary compat code (#932) 2018-12-03 11:22:57 +01:00
Conny Duck f185c9d379 fix crash in ComposeActivity when loading no Emojis 2018-11-27 21:07:15 +01:00
Konrad Pozniak 348c20c792
New settings (#891)
* change drawer items

* rename SettingsActivity

* introduce AccountSettings activity

* improve account settings, move notification settings

* sync settings with server

* rename settings back to preferences

* add functionality for settings

* move mediaPreviewEnabled preference to AccountPreferences

* replace shared prefs with accountmanager

* move PreferencesFragment to support library

* split preferences fragment into smaller fragments,
merge AccountPreferencesActivity into PreferencesFragment

* adjust icon size, add icons to general preferences

* change mediaPreviewEnabled and alwaysShowSensitiveMedia pref position

* add database migration

* remove pullNotificationCheckInterval option

* fix  preference in TimelineFragment

* Update Chinese translations. (#915)

* Update zh-CN translations.

* Update zh-SG translations.

* Update zh-TW translations.

* Update zh-MO translations.

* Update zh-HK translations.

* Fix errors in zh-CN translations.

* Fix errors in zh-SG translations.

* Fix errors in zh-TW translations.

* Fix errors in zh-MO translations.

* Fix errors in zh-HK translations.
2018-11-12 21:09:39 +01:00
Levi Bard 690e612f8b Media description improvements (#898)
* Enforce 420-character limit on media descriptions in the UI

* Persist media descriptions with drafts

* Defer media description update until after upload finishes

* Make description field 2 lines for better visibility of hint text

* Reuse Gson instance

* Force retranslation of modified string "hint_describe_for_visually_impaired"

* Add bounds check when reading serialized media descriptions
2018-11-11 19:25:45 +01:00
Levi Bard b483a0bf25 Filter emoji where "visible_in_picker" is set to false. (#907)
Addresses #770
2018-11-04 10:51:31 +01:00
Levi Bard bc4b77512f Focus content warning field on activation (#883)
Fixes #773
2018-10-12 21:53:04 +02:00
Levi Bard 0bca94b94e Enable sharing media directly from Tusky (#852)
* Extract duplicated code into BaseActivity

* Migrate MediaUtils to kotlin

* Migrate ViewVideoActivity to kotlin

* Migrate ViewMediaActivity to kotlin

* Initial media sharing functionality

* Address code review feedback

* Make share icon match

* Address code review feedback
2018-10-01 11:50:17 +02:00
Levi Bard 4ded425466 Make Tusky a share target for video (#857) 2018-09-28 17:11:32 +02:00
Gian Sass bfea5119d5 sort custom emojis alphabetically (#853) 2018-09-18 20:46:50 +02:00
Conny Duck 669153089a dont hold whole file content in memory when uploading media 2018-09-10 10:00:06 +02:00
Conny Duck 90ef078dd0 update media limits for Mastodon 2.5 2018-09-10 10:00:06 +02:00
Konrad Pozniak aac63441d7
fix image preview rotation in ComposeActivity (#831) 2018-09-03 20:26:35 +02:00
Conny Duck 8a1ac685c8 fix activity transitions (this time for real) 2018-08-23 21:06:49 +02:00
Levi Bard bfb82bb10c Separate saved draft visibility from default reply visibility: #772 (#787) 2018-08-23 20:50:50 +02:00
Konrad Pozniak 04c842afc4
fix OOM crash when trying to caption large image (#756) 2018-08-15 20:47:36 +02:00
Conny Duck ce7270cdb2 fix the activity transitions (again 🙄) 2018-08-07 23:08:53 +02:00
Ivan Kupalov 133808891d Add RoundedImageView for avatars (#739)
* Add RoundedImageView for avatars

* RoundedImageView: Remove unused things, fix touchable area
2018-07-30 15:36:22 +02:00
qwazix 562beacfc1 Add black theme (#726)
* Add black theme

On amoled screens a completely black theme helps save battery,
besides looking awesome!

* Fix first set of merge request issues except the dialog.

* Black theme inherits from dark and only the different values
  are declared
* Make nav bar translucent (for some reason content does not
  go behind it in main activity. Need to investigate)
* Remove nav bar line
* Fix toolbar color

* Fix dialog issue with black theme.

Revert translucent navigation.

* Translations updated, as well as possible from online sources.

* Make login screen respect black theme
2018-07-30 15:31:35 +02:00
Ivan Kupalov 6fcb3cb495 Add image descriptions indicator (#697)
* Add image descriptions indicator. Closes #683

* Add bg for description indicator, change symbol

* Use icon for image description indicator
2018-07-30 15:20:53 +02:00
Konrad Pozniak 2a6f6c4092
work around crash on Android 8 (#731) 2018-07-26 23:31:20 +02:00
Konrad Pozniak 61f3f6c928
Improve media resizing (#722)
* improve MediaUtils.getImageThumbnail so it does not load the whole bitmap into memory

* load thumbnails in device specific sizes
2018-07-23 21:55:09 +02:00
Conny Duck e56386ea84 fix bug where sending toot is not possible despite it being below character limit 2018-07-10 19:48:41 +02:00
Konrad Pozniak 1c5df27f91
use ACTION_GET_CONTENT for media selection again, fix uri permissions (#695) 2018-06-28 22:22:29 +02:00
Konrad Pozniak a42ce9b793
fix media resizing (#686)
* fix media resizing

* move exception catching out of method
2018-06-18 13:26:31 +02:00
Ivan Kupalov 3756a1fd20
Add EventHub, add fav, reblog events, improve timelines (#562)
* Add AppStore, add fav, reblog events

* Add events, add handling to Timeline

* Add event handling to Notifications

* Mostly finish events

* Fix unsubscribing

* Cleanup timeline

* Fix newStatusEvent in thread, fix deleteEvent

* Insert new toots only in specific timelines

* Add missing else

* Rename AppStore to EventHub

* Fix tests

* Use DiffUtils for timeline

* Fix empty timeline bug. Improve loading placeholder

* Fix AsyncListDiff, loading indicator, "load more"

* Timeline fixes & improvements.

Fix infinite loading. Remove spinner correctly.
Don't refresh timeline without need.
2018-05-27 11:22:12 +03:00