Commit Graph

184 Commits

Author SHA1 Message Date
Ivan Kupalov 28e46c9cc0 Add ComposeActivity tests. Add ServiceLocator (#542) 2018-03-09 22:02:32 +01:00
Ivan Kupalov e82c9dcd2a Compose close dialog + focus fix (#539) 2018-03-05 22:43:13 +01:00
Konrad Pozniak 71954a277e
convert entity classes to Kotlin data classes (#526)
* convert entity classes to Kotlin data classes

* more data classes, code style
2018-03-03 13:24:03 +01:00
Conny Duck 49a74f57a5 fix a crash in ComposeActivity when trying to share images while logged out 2018-02-25 15:41:45 +01:00
Conny Duck 1a3907936d fix crash in ComposeActivity when account has no profile picture set 2018-02-08 19:17:08 +01:00
Konrad Pozniak 92ae463b38
Multi account feature (#490)
* basic implementation

* improve LoginActivity

* darken drawer background image

* add current avatar in ComposeActivity

* add account name to logout dialog

* multi account support for notifications

* multi account support for notifications

* bugfixes & cleanup

* fix bug where somethings notifications would open with the wrong user

* correctly set active account in SFragment

* small improvements
2018-02-03 22:45:14 +01:00
Conny Duck 3c795c6eef upgrade to minSdkVersion 18, fix some lint warnings 2018-01-31 21:57:50 +01:00
Ivan Kupalov 0426e8725a Set caption for media (#500) 2018-01-08 23:16:21 +01:00
Conny Duck fbf64fa1e9 fix NPE in MediaUtils.getMediaSize 2017-12-05 21:48:17 +01:00
Conny Duck e5516749ed stop cursor from jumping when upload finishes while composing toot 2017-12-05 20:56:42 +01:00
Konrad Pozniak 41233a837b
UI Improvements (#445)
UI Improvements
2017-11-30 20:12:09 +01:00
Conny Duck 1c2a647569 improve default post privacy to work like web mastodon, add default post privacy option 2017-11-27 20:11:31 +01:00
Ivan Kupalov 2575b16dad Save reply info in draft, refactor (#449)
* Save reply info in draft, refactor

* Handle replying to deleted status
2017-11-16 19:18:11 +01:00
Conny Duck 305d28a5c1 fix some lint warnings, remove unused code 2017-11-07 15:31:44 +01:00
Conny Duck a2c361914b fix a crash in ComposeActivity where a dialog was canceled that was already removed from the window 2017-11-07 15:01:20 +01:00
Conny Duck 9df3836665 prevent a crash in ComposeActivity when ContentResolver raises a SecurityException 2017-11-02 21:18:39 +01:00
Conny Duck 2dfd83ef97 adding image keyboard support (and some cleanup) 2017-11-01 21:56:38 +01:00
Ivan Kupalov 62f4837135 Reply improvements (#432)
* Refactor ComposeActivity intent. Fix bug with URLs

When user saved toot link was removed from the text field itself,
not only from the text to be saved.

* Show what you reply to

Closes #119
2017-11-01 20:59:29 +01:00
Ivan Kupalov 15e37576e5 Add media upload progress. Closes #412 (#426) 2017-10-29 22:18:45 +01:00
Ivan Kupalov bc59d4d938 Fix issues with media uploads restoring. Fixes #419. Fixes #308. (#425) 2017-10-28 22:24:26 +02:00
Ivan Kupalov df4dfa7766 Stop adding link info when composing toot (#418) 2017-10-27 13:19:12 +02:00
Conny Duck d9bbb1be71 should fix a problem with autocomplete and some keyboards 2017-10-23 22:55:43 +02:00
Conny Duck f2f3be37b3 cleanup code, remove some unneeded files 2017-10-18 00:20:50 +02:00
Conny Duck c3ffed56da fix a bug where saving a toot with attached media would crash the app 2017-10-17 09:38:36 +02:00
Conny Duck 71743890b0 rounded corners for avatar placeholder 2017-08-11 22:41:29 +02:00
Vavassor 6b3dd30527 Fixes URLs being deleted erroneously when multiple images are added in the composer. 2017-07-30 17:16:32 -04:00
Vavassor 4f96d850cc Fixes a crash when autocompleting a mention, second try. (previous fix was commit ab537ef3cb) 2017-07-28 12:36:54 -04:00
Vavassor 239ebaf9b2 Consolidate the two media buttons in the composer. 2017-07-27 22:40:58 -04:00
Vavassor f3b5087c52 Adds save draft button to composer. 2017-07-27 00:56:53 -04:00
Vavassor 42a49fbd4e Updates the upload size limit and correct it to power of two numbers of bytes as it actually always was. 2017-07-26 00:12:02 -04:00
Vavassor 2ed979d7fd Fixes a crash and errors associated with a URL pasted into the composer being edited before its metadata is loaded. 2017-07-25 19:23:37 -04:00
Vavassor 6e366a1b84 Give up 2017-07-20 22:29:29 -04:00
Vavassor ab537ef3cb Fixes a crash while autocompleting a mention. Also, a small bit of refactoring. 2017-07-20 17:54:41 -04:00
Vavassor f6c309e7db Fixes a crash when a thumbnail for an image attachment fails to load. 2017-07-19 00:28:36 -04:00
Vavassor 51e2b7c949 Fixes a few content descriptions and re-titles the Drafts page. 2017-07-18 22:32:13 -04:00
Vavassor 857f39b480 Widens proguard to just keep everything under org.bouncycastle when minifying. Also fixes a bug where the composer's content warning is hidden after changing orientation. 2017-07-17 00:06:48 -04:00
Vavassor 8559a6d75c Corrects number localization and adjusts the padding of the reblog avatars in right-to-left layout direction. 2017-07-14 18:18:29 -04:00
Vavassor e4dff388d2 Improves right-to-left layouts in the most basic fashion. 2017-07-12 02:09:07 -04:00
Vavassor a1e007eb2a Adds saving media to drafts. 2017-07-11 21:49:46 -04:00
Vavassor 125c0e7e6c Saves content warnings in drafts. 2017-07-07 22:56:07 -04:00
torrentcome b6d4b388a5 Merge branch 'master' into #142/SaveToots
# Conflicts:
#	app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java
2017-07-07 13:28:31 +02:00
torrentcome 47dccd81e7 (db) add the Update feature for each Draft we already have 2017-07-07 12:32:47 +02:00
torrentcome 76fca004ee (correction) fix some forgot code to present the pull request :D 2017-07-06 12:20:54 +02:00
torrentcome 87c1edb3d4 (medias) try to add medias 2017-07-05 16:36:14 +02:00
Vavassor 932a990fe4 Fixes bug where "The upload failed." error message shows up when media upload is canceled intentionally. 2017-07-02 17:55:18 -04:00
Vavassor b06dda47c1 Fixes a crash where photoUploadUri can be nullified if the activity is evicted from memory while taking a picture, so when it resumes and recreates it no longer has a valid URI. Closes #326 2017-07-02 17:45:13 -04:00
Vavassor 9e07c59565 Adjusts composer imports. 2017-07-02 16:34:10 -04:00
torrentcome b0f848b0f7 (db) insert toot with long click 2017-06-29 17:56:58 +02:00
torrentcome f79445f50a (clean) keep it simple , don't polluted ComposeActivity, commented and moving the code 2017-06-29 12:03:44 +02:00
torrentcome fec8e5c47c (db) insert + read 2017-06-28 19:33:54 +02:00
Vavassor 1dc9c87c2e Fixes public visibility being disabled when replying, and changes the default to public like non-reply posts. 2017-06-26 15:46:03 -04:00
Vavassor c5c6e8205a Fixes autocomplete list getting cut off in the composer if the user is using an app or launcher that hides the status bar. 2017-06-26 15:38:04 -04:00
Vavassor 7d7d5864d4 Adjusts the media label alignment in statuses. 2017-06-26 14:51:39 -04:00
Vavassor b1aa05694e Removes ButterKnife annotations. 2017-06-22 14:59:12 -04:00
Vavassor 18ebfa212e Minor writing style changes. 2017-06-22 14:01:25 -04:00
Vavassor 2e29088d65 Fixes cursor being placed after a media link when it is added in the composer. Also, adjusts a tinting error in the composer buttons. 2017-06-20 16:57:04 -04:00
Vavassor b9b5e58b50 Changes the NSFW button to a "hide media" icon in the composer. This is inspired in part by the upstream change tootsuite/mastodon#2696. But also NSFW was never a good description of this function. 2017-06-20 14:16:03 -04:00
Vavassor fcdb507ef0 Changes the autocomplete list to show the username, display name, and avatar of each suggestion for @ mentions. 2017-06-18 23:34:48 -04:00
Vavassor 74aa866647 Autocomplete @ mentions in the composer. Closes #103 2017-06-18 22:10:50 -04:00
torrentcome 2b9f19805f Merge branch 'master' into #136 2017-06-02 23:15:21 +02:00
Konrad Pozniak 7501fcaeaa Merge branch 'master' into log-improvement 2017-05-25 19:17:20 +02:00
Conny Duck 2eaff99b29 log some more exceptions 2017-05-25 17:21:11 +02:00
Conny Duck 1a39e58d3c remove unnecessary Log utility class, replace Exception.printStackTrace with logging 2017-05-23 21:34:31 +02:00
torrentcome b9d460e712 (bug of picasso) the Target wasn't load at the first time forget to read the documentation so , record the target in field change the way that works.
Now work fine.
2017-05-17 16:08:43 +02:00
Vavassor 6752d45d4b Initial client working for MQTT push notifications. 2017-05-16 22:19:34 -04:00
torrentcome 418fbd3b5c (share) add share functionality
- get the text shared and put it on the Clipboard
- pass by the same way that past for Download the information
2017-05-16 17:56:35 +02:00
torrentcome b1bbcb39d5 (ComposeActivity) clean up, automatique format and implementation of
- Share a link and extract the title, images, author's name #136
2017-05-16 10:43:32 +02:00
torrentcome 0a6a2e44c2 (view) create package view 2017-05-15 12:07:01 +02:00
Vavassor aa2394748c Reorganizes the whole codebase. 2017-05-04 18:55:35 -04:00
Vavassor f313884f7d Adds a link to the text of a post when media is attached. 2017-05-03 20:27:59 -04:00
Vavassor ab76121692 Change locked accounts to default visibility to "followers-only", and reorganizes the composer because it was getting cluttered. 2017-05-02 18:17:54 -04:00
Vavassor 1c1328449a Merge pull request #200 from tahnok/master
Make compose EditText TYPE_TEXT_FLAG_CAP_SENTENCES
2017-04-21 01:52:28 -04:00
Vavassor 681c70d056 Changes the icon for the visibility menu in the composer to match the current visibility. Also, fixes build errors with the dutch translation file. 2017-04-21 01:50:59 -04:00
Wesley Ellis 14fdc9ed15 Make compose EditText TYPE_TEXT_FLAG_CAP_SENTENCES 2017-04-18 22:10:48 -04:00
Raphael Michel 15088fa42a Allow taking photos directly from the app (closes #139) 2017-04-17 10:56:30 +02:00
Vavassor a33c259760 Ties composer readying state and control states together. 2017-04-17 00:29:47 -04:00
Vavassor cc0aaf6162 Fixes a couple cases in the composer where buttons enabled are out of sync with whether a status is already in flight. 2017-04-17 00:18:55 -04:00
Vavassor 962bd79d3f Merge branch 'error_handling_bug' of https://github.com/raphaelm/Tusky into raphaelm-error_handling_bug 2017-04-17 00:09:16 -04:00
Raphael Michel fce573f1ec Update thread view after sent reply (closes #74) 2017-04-15 19:59:06 +02:00
Raphael Michel ee4d0739db Re-enable controls after failed toot 2017-04-15 17:52:21 +02:00
Vavassor 03c0994879 Merge branch 'update_compose_while_posting' of https://github.com/theZacAttacks/Tusky into theZacAttacks-update_compose_while_posting 2017-04-11 18:35:54 -04:00
Zachary Epps 236fd3570f removed needless import 2017-04-10 13:51:57 -04:00
Zachary Epps b92900bda1 actually added the other files, whoops 2017-04-10 13:51:41 -04:00
Vavassor c9e7401fca Fixes a character limit bug. Closes #102 2017-04-10 13:34:33 -04:00
Vavassor 2ba35fae35 Merge branch 'inherit_warnings' of https://github.com/ntngrtltr/Tusky into ntngrtltr-inherit_warnings 2017-04-09 20:24:59 -04:00
Vavassor 4d9fd09a3c License change back to GPL 3 2017-04-09 20:12:31 -04:00
ntngrtltr 50d386e271 inherit content warnings in replys 2017-04-07 20:37:27 +02:00
Vavassor a9970ee875 Simplify the error messages and remove unused strings. 2017-04-06 03:09:49 -04:00
Vavassor 27dd106988 Sharing images and text from other apps is now supported. Closes #52 2017-04-06 01:11:44 -04:00
Vavassor 0719512134 Sharing images from other apps now supported. 2017-04-05 16:35:22 -04:00
Vavassor 2cb0b96abd Fixes a crash during authentication and another when opening the composer options. Also, sets up the next update to reset the redirect URI for the app during authorization. 2017-04-04 22:29:15 -04:00
Vavassor eef0f82e96 Fixes a crash when changing orientation in the composer. 2017-04-04 16:02:08 -04:00
Vavassor eccebc9215 Fixes a vector drawable crash on earlier versions. 2017-04-02 19:10:07 -04:00
Vavassor 26c722c950 Prevents an out-of-memory crash when uploading images and also downsizing now uses significantly less memory. 2017-03-31 17:53:35 -04:00
Vavassor eed3f2d899 Light icon buttons are colour background with white text again. It just looks nice. 2017-03-30 19:23:43 -04:00
Vavassor 1f798902b7 Spruces up the light theme.
Also, fixes a bug where the show more/less button for content warnings is sometimes already checked.
2017-03-29 00:22:14 -04:00
Vavassor 49ef88751e Fixes a bug where privacy settings in the composer are sproadically not remembered. 2017-03-28 13:58:37 -04:00
Vavassor 79f067caf4 Fixes content warning text box hiding after configuration changes. 2017-03-26 19:37:32 -04:00
Vavassor 81700e7b84 Adds an indicator of visibility to the send button in the composer. Closes #38 2017-03-26 18:26:47 -04:00
Vavassor 5f2ddcfdc0 Fixes composer not saving/restoring its text on configuration changes for some devices. 2017-03-26 17:21:18 -04:00