Commit Graph

315 Commits

Author SHA1 Message Date
Konrad Pozniak a2bfef3101
move bottom sheet from fragments to activities (#628)
* move bottom sheet from fragments to activities

* move BottomSheetLogic to dedicated abstract Activity

* change tests

* improve code
2018-05-06 22:05:54 +02:00
Konrad Pozniak 5cfe6f8fa5
make search find statuses (#613) 2018-04-30 11:30:10 +02:00
Conny Duck d4425c619a improve item_status_detailed layout for all font sizes 2018-04-29 09:06:26 +02:00
Konrad Pozniak 89f93eab85
Fix SparkButtons (#608)
* fix the SparkButtons

* dont notify adapter after boost/fav
2018-04-28 22:59:46 +02:00
Levi Bard 76eae44324 View links to statuses inside Tusky (#568)
* View links to statuses inside Tusky

* Only attempt to open links that look like mastodon statuses

* Add support for pleroma statuses

* Move "smells like mastodon" url check to click handler

* Add bottom sheet to notify users of post query status

* Improve architecture for managing search status

* Push everything into SFragment

* Add external lookup for non-locally-resolved account links

* Clean up copypasta from LinkHelper.setClickableText

* Apply PR feedback

* Migrate bottom sheet wrappers to CoordinatorLayout
2018-04-25 20:04:55 +02:00
Konrad Pozniak 20033f844a fix emoji & toot size limit caching 2018-04-23 09:26:03 +02:00
Konrad Pozniak d17ff3eb0f fix problems with selectable text in detailed status 2018-04-22 16:34:02 +02:00
Konrad Pozniak 63ab0ef839
Fix crash in EditProfileActivity on Android 8 (#585)
* fix bug where sometimes mentions where duplicated when replying

* fix for crash on Android 8
2018-04-17 19:25:56 +02:00
Konrad Pozniak 27eefbf65a
ComposeActivity improvements (#548)
* do not add media urls to status text

* add scrolling to content

* add arrow icon and animation to replying-to toggle

* remove unnecessary compose_button_colors.xml

* improve toot button

* improve bottom bar, add bottom sheet for compose options, dedicated cw button

* fix crash on Android < API 21

* move media picking from dialog to bottom sheet

* add small style tootbutton

* fix colors/button background for light theme

* add icons to media chose bottom sheet

* improve hide media button, delete unused styles

* fix crash on dev build when taking photo

* consolidate drawables

* consolidate strings and ids, add tooltips to buttons

* allow media only toots

* change error message to show max size of upload correctly

* fix button color

* add emoji

* code cleanup

* Merge branch 'master' into compose_activity_refactoring

# Conflicts:
#	app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

* fix hidden snackbar

* improve hint text color

* add SendTootService

* fix timeline refreshing

* toot saving and error handling for sendtootservice

* restructure some code

* convert EditTextTyped to Kotlin

* fixed pick media button disabled color

* force sensitive media when content warning is shown

* add db cache for emojis & fix tests

* reorder buttons to match mastodon web

* add possibility to cancel sending of toot

* correctly delete sent toots

* refresh SavedTootActivity after toot was sent

* remove unused resources

* correct params for toot saving in SendTootService

* consolidate strings

* bugfix

* remove unused resources

* fix notifications on old android for SendTootService

* fix crash
2018-04-13 22:37:21 +02:00
Conny Duck 8a23f034f0 prevent soft keyboard from opening automatically in EditProfileActivity 2018-04-11 19:15:22 +02:00
Conny Duck 54d45585e6 improve spoiler warning button & detailed status text size 2018-04-09 16:44:57 +02:00
Konrad Pozniak 8bca651f53 make text in detailed toots selectable 2018-04-01 15:45:08 +02:00
Konrad Pozniak 3708421362 add new avatar placeholder 2018-03-30 19:46:36 +02:00
Conny Duck 3628b8431d add possibility to un/lock accounts 2018-03-27 20:46:53 +02:00
Levi Bard 043ac58254 improve content warning button
* Use the entire content warning text + button as the hitbox for the "Show more/less" toggle

* Move the content warning toggle button to its own line and give it a little more space

* Move content warning elements into parent layout, remove now-superfluous FlowLayout

* Use marginTop/Bottom instead of Vertical, which is only in sdk 26+

* Update minimum width for content warning toggle button
2018-03-15 19:15:12 +01:00
Ivan Kupalov e82c9dcd2a Compose close dialog + focus fix (#539) 2018-03-05 22:43:13 +01:00
Conny Duck 37c5fe150e remove unused view from activities 2018-03-05 14:53:33 +01:00
Conny Duck ed60cc3a78 gracefully handle null statuses in notifications 2018-03-01 21:10:10 +01:00
Conny Duck 14439c016c increase text size of detailed toot 2018-02-17 13:54:27 +01:00
Conny Duck c766a203bf fix bug in rtl layout, remove unneeded xml attributes & dimen resources 2018-02-16 22:14:25 +01:00
Konrad Pozniak 17a122b293
Rewrite EditProfileActivity in Kotlin (#525)
* rewrite EditProfileActivity in Kotlin

* fix bug in MainActivity where profiles would duplicate

* fix code style
2018-02-12 22:04:18 +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 c9004f1d54 adjust follow button font size 2018-02-03 13:34:40 +01:00
Conny Duck 3524a67a7f simplify list_item layout 2018-02-03 13:24:12 +01:00
Ivan Kupalov 6152043df3 Add basic lists support (#501) 2018-01-06 19:01:37 +01:00
Conny Duck 3bd855d4c4 set tab indicator height to 3dp 2017-12-09 21:34:04 +01:00
Konrad Pozniak 4743c85d82 fix crash on Android 4 2017-12-02 12:22:52 +01:00
Conny Duck 03f866f8c2 fix toot button and characters left text size 2017-12-01 22:44:18 +01:00
Conny Duck c20ee1d593 make content warning button smaller 2017-12-01 22:15:26 +01:00
Conny Duck bf4d0bb722 change handling of font size, introduce font size setting 2017-12-01 21:52:10 +01:00
Konrad Pozniak 41233a837b
UI Improvements (#445)
UI Improvements
2017-11-30 20:12:09 +01:00
charlag 76c7a7e462 Display CWs in notifications correctly 2017-11-08 00:09:44 +03:00
Conny Duck 305d28a5c1 fix some lint warnings, remove unused code 2017-11-07 15:31:44 +01:00
Konrad Pozniak 21de60f739
Merge branch 'master' into timeline-improvement 2017-11-07 13:03:49 +01:00
Ivan Kupalov dc1a60cc12 Implement media tab (#430) 2017-11-05 22:32:36 +01:00
Conny Duck 80a10c1ac1 implement "load more" placeholder 2017-11-04 21:57:30 +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
Conny Duck 93fcd33c48 add actionbar to PreferencesActivity 2017-10-30 10:41:59 +01:00
Conny Duck 671957da5a title and menu to open toot in browser for ViewThreadActivity 2017-10-28 21:59:33 +02:00
Conny Duck 4807493850 update AboutActivity to show License, remove ic_logo.png 2017-10-28 13:39:32 +02:00
Konrad Pozniak 5cbc7217ff Link previews for detail statuses (#424)
* implement link preview cards on detail statuses

* cleanup code
2017-10-27 13:20:17 +02:00
Conny Duck 7d7aeadd41 improve content warning background 2017-10-18 11:08:49 +02:00
Conny Duck 3a7a663824 change background color of detailed status for better legibility, especially with light theme 2017-10-18 10:12:53 +02:00
Conny Duck f2f3be37b3 cleanup code, remove some unneeded files 2017-10-18 00:20:50 +02:00
torrentcome 87de285fe8 (#377) hide sensitive images after showing them
-The web client overlays a small eye button over sensitive images after they've been shown that re-hides them
2017-08-30 14:22:12 +02:00
Vavassor 67f3ce6e4e Changes content warning show more/less button to use a drawable with built-in shadow for compatibility with API levels below 21. 2017-08-11 16:34:43 -04:00
Vavassor b7dcd31470 Merge branch 'button-improvements' of https://github.com/connyduck/Tusky into connyduck-button-improvements 2017-08-08 23:55:32 -04:00
Vavassor ad399eedf1 Merge branch 'account-activity-improvements' of https://github.com/connyduck/Tusky into connyduck-account-activity-improvements 2017-08-08 21:23:16 -04:00
Conny Duck f696b6e8d3 bugfix, layout improvements 2017-08-05 12:04:40 +02:00
Conny Duck 17876008cf improve buttons in follow request/muted users/saved toots/blocked users 2017-08-05 10:52:58 +02:00
Conny Duck 2f66de9797 code cleanup, simplify AccountActivityLayout 2017-08-05 10:29:04 +02:00
Conny Duck 848189d670 show if an account follows you back in AccountActivity 2017-08-05 10:09:17 +02:00
Conny Duck e4c9b229d7 change floating action button to "mention", create new follow button in AccountActivity 2017-08-04 10:53:38 +02:00
Vavassor df07ab2600 Adjusts background colours and button colours on the dark theme. Also, adds a background to the main status in a thread. 2017-08-03 19:13:26 -04:00
Conny Duck 42734c4f57 improve layout of AccountActivity tabs 2017-08-03 16:24:14 +02:00
Vavassor 309c89eefc Makes the main status of a thread appear as a more detailed view. 2017-08-03 00:29:31 -04:00
Vavassor 239ebaf9b2 Consolidate the two media buttons in the composer. 2017-07-27 22:40:58 -04:00
Vavassor 2cfb92013e Adjusts padding of the composer buttons. 2017-07-27 01:13:33 -04:00
Vavassor f3b5087c52 Adds save draft button to composer. 2017-07-27 00:56:53 -04:00
Vavassor 6e366a1b84 Give up 2017-07-20 22:29:29 -04:00
Vavassor 51e2b7c949 Fixes a few content descriptions and re-titles the Drafts page. 2017-07-18 22:32:13 -04:00
Ivan Kupalov 08f928a2b2 Improve media browser and video viewer
* show/hide status bar by tapping a photo
* dim and color status bar in video/media viewers
* show/hide status bar in video viewer
* use shared element transition when opening a photo is possible
* center video in VideoView
2017-07-15 18:37:53 +03:00
Vavassor f37bb694f1 Makes the toolbar shadow visible for pre-Lollipop android versions and fixes a crash when deleting a draft with no media attached. 2017-07-15 03:10:55 -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
Ivan Kupalov 240fb372ba Add small avatars to boosted toots and to notifications. 2017-07-14 08:06:32 +03:00
Vavassor fc1a24be11 Resolves merge conflicts and makes NotificationAdapter no longer implement AdapterItemRemover 2017-07-13 21:31:31 -04:00
Ivan Kupalov 90c1a83ba4 Preserve status states on updates. UI layer refactoring.
Some things were pulled out of adapters to fragments. New classes were introduced - StatusViewData and NotificationViewData. They not only have view state in them but also help decoupling.
Because introducing parallel model list requires a lot of synchronisation PairedList was added.
Also synchronisation between fragments and adapters is quiet tedious and error-prone and should be replaces with better solution.
Oh, I also couldn’t resist and fixed bug with buttons animation in the same commit.
2017-07-13 22:18:08 +03:00
Vavassor b77d9934ab Fixes some odd spacing in right-to-left direction and sets some icons to auto-mirror. 2017-07-12 17:03:32 -04:00
Vavassor e4dff388d2 Improves right-to-left layouts in the most basic fashion. 2017-07-12 02:09:07 -04:00
Vavassor 63bf832ffd resolves merge conflict 2017-07-06 22:15:44 -04:00
torrentcome 87c1edb3d4 (medias) try to add medias 2017-07-05 16:36:14 +02:00
torrentcome 1e597fb7b1 (ui) more ui with list saved toot 2017-07-05 16:35:33 +02:00
Vavassor 275cd51a6d Adds correct footer behaviour to account lists and unifies it with how timelines use them. 2017-06-30 18:30:25 -04:00
torrentcome 946f58439c (saved_toot) add part of saved toot activity 2017-06-29 17:55:39 +02:00
Vavassor 3f3ccfca55 Adds an icon to video and gifv media previews to indicate they can be played. The icon is a circled triangle (play button). Closes #319 2017-06-26 19:04:05 -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 3f54ead962 Adds option to hide media previews if reduced data usage is desired Closes #56. 2017-06-26 05:15:47 -04:00
Vavassor e3745ebd6b Adds ability to page between multiple images in a status by swiping from left to right. Closes #66 2017-06-25 01:07:41 -04:00
Vavassor 100b9f0a47 Extends the width of the search view. 2017-06-22 02:00:03 -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 53e6769d55 Consolidates the main header and removes the now-unneeded FloatingSearchView library. Closes #67 2017-06-19 20:50:40 -04:00
Vavassor 401dd62af7 Search page fully functional for accounts and hashtags. Closes #44 2017-06-19 15:47:53 -04:00
Vavassor 289e2fbbe1 Adds a prototype search page. The previous search bar is not yet removed. 2017-06-19 04:18:39 -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
Vavassor 85f7b16736 Removes "fillable loader" library, since it's no longer used for the splash screen. 2017-05-31 20:50:11 -04:00
torrentcome 0a6a2e44c2 (view) create package view 2017-05-15 12:07:01 +02:00
Vavassor 1815d574c8 Makes the view media toolbar transparent. 2017-05-11 21:31:29 -04:00
torrentcome a015637785 (media) add toolbar and download button 2017-05-10 15:24:45 +02:00
Vavassor 3c20f7a0c4 Adds a splash screen replacement. 2017-05-09 22:36:05 -04:00
Vavassor 1dc32323d5 Adds a higher-resolution elephant friend to the login page. Closes #99 2017-05-08 16:30:25 -04:00
Vavassor 88e2b7b382 Merge branch 'master' of https://github.com/Pangoraw/Tusky into Pangoraw-master 2017-05-08 15:40:08 -04:00
Vavassor a2a600a9de Adds back button to the about page and for the Tusky's Profile button it searches for the account first and saves the ID for subsequent presses. Closes #279 2017-05-08 15:00:33 -04:00
Paul 17f347cab5 Add loading on login activity while fetching tokens 2017-05-08 11:24:30 +00:00
Vavassor 551d73baee Makes about page work with light theme and landscape orientation. 2017-05-07 22:00:29 -04:00
Vavassor daf0ec8e49 resolves merge conflict 2017-05-07 20:20:59 -04:00
Vavassor 7f934e4f26 Resolves merge conflicts 2017-05-07 17:58:56 -04:00
Vavassor c3f4473508 Merge pull request #268 from connyduck/textinputedittext
use TextInputEditText instead of EditText inside TextInputLayout
2017-05-07 17:44:42 -04:00
Vavassor d658e6e7a3 Merge pull request #270 from connyduck/profile-header
remove account_header_default.png
2017-05-07 17:44:26 -04:00
Paul fc2d039d63 Add loader when waiting to display a media 2017-05-06 11:30:52 +00:00
Vavassor aa2394748c Reorganizes the whole codebase. 2017-05-04 18:55:35 -04:00
Conny Duck b97c4e24ed remove redundant account_header background, fix weird flicker in header when opening AccountActivity 2017-05-04 18:07:59 +02:00
Conny Duck 310d9a3c91 use TextInputEditText instead of EditText inside TextInputLayout 2017-05-04 16:32:21 +02:00
Conny Duck 2898baf18d updated dependencies 2017-05-04 16:16:24 +02:00
Vavassor bd687fb45d Fixes crash on android version Lollipop and earlier due to an unsupported way vector drawable icons were assigned to radio buttons. 2017-05-03 18:33:15 -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 ba0ad09f19 Merge branch 'raphaelm-account_activity_title' 2017-05-01 23:31:59 -04:00
Vavassor 07f22b2560 Fixes the text colour in the light theme for the collapsed toolbar in the account page. 2017-05-01 23:31:31 -04:00
Vavassor 800ab8001e Adds content descriptions to header and avatar buttons in the profile editor and puts the page in a scroll view so it's navigable in landscape mode. 2017-05-01 22:30:49 -04:00
daycode c7e4d17aaf Add gestion of avatar and header 2017-05-01 15:23:34 +02:00
serage.betelmal df7e077029 Adding more content to the About activity 2017-04-30 21:53:32 +01:00
serage.betelmal 9b86c93e76 Merge branch 'master' into feature/about-page 2017-04-30 21:09:09 +01:00
daycode b82d75a6c4 design the edit profile view 2017-04-30 21:57:15 +02:00
Vavassor 7d83a9aaba Follow requests list is available. Closes #222 2017-04-28 23:52:14 -04:00
Conny Duck 1aa870b069 make tabs fill whole space in landscape mode 2017-04-27 14:47:56 +02:00
Vavassor 852c484d68 Adds a list of muted users. 2017-04-21 19:02:04 -04:00
Vavassor db021b948b resolve merge conflicts 2017-04-21 01:25:07 -04:00
Vavassor fdd92f25a6 fix build issues 2017-04-21 01:08:38 -04:00
Vavassor 2d88571b14 Merge branch 'issue_139' of https://github.com/raphaelm/Tusky into raphaelm-issue_139 2017-04-21 00:57:31 -04:00
Vavassor b9f0c51e70 Provisional profile editor complete. 2017-04-20 18:56:36 -04:00
Vavassor 5941a2f5b3 Profile editor functionally complete. 2017-04-19 00:01:04 -04:00
daycode d6a66656de Add Direct Message to visibility panel 2017-04-18 12:59:42 +02:00
Raphael Michel 15088fa42a Allow taking photos directly from the app (closes #139) 2017-04-17 10:56:30 +02:00
Vavassor 18e40855ad Profile edits for display name and bio are working. Avatar and header image picking are in but not uploaded. 2017-04-17 02:49:56 -04:00
Vavassor e15f1cfcab Merge branch 'master' into edit-profile 2017-04-17 01:10:20 -04:00
Vavassor 61fdda5fa3 Merge branch 'issue_62' of https://github.com/raphaelm/Tusky into raphaelm-issue_62 2017-04-16 23:04:00 -04:00
Vavassor 820ef1305e Merge pull request #168 from raphaelm/account_tab_margin
Margins in account tab
2017-04-16 22:57:21 -04:00
Vavassor 84741c1f1b Adds a partial profile editor (non-working). 2017-04-16 18:51:09 -04:00
Raphael Michel 1701ef67d9 Margins in account tab 2017-04-15 20:36:21 +02:00
serage.betelmal 642e2af23e Adding an about activity to the App 2017-04-15 19:05:25 +01:00
Raphael Michel d732c5d0a7 Timeline footer improvements 2017-04-15 19:25:39 +02:00
Raphael Michel f4109f38a8 Allow pull-to-refresh in thread view (closes #73) 2017-04-15 12:28:22 +02:00
Vavassor 3bf84f9b7d Cleaned up content descriptions and added the last missing ones. Closes #122 2017-04-12 21:54:37 -04:00
Vavassor ea7f666062 Enlarged the touch areas of status action buttons slightly. 2017-04-12 16:17:29 -04:00
Vavassor 2e45a0bbff Adds missing content descriptions and fixes a bit of the follow button hiding code. 2017-04-12 04:32:05 -04:00
Vavassor bc8c2427fb Removes mention of elephant friend, to reduce noise. 2017-04-12 00:27:48 -04:00
Vavassor f6a165a50a Adds content descriptions and hints to non-textual elements so they can be described by screen readers. 2017-04-12 00:21:52 -04:00
Zachary Epps b92900bda1 actually added the other files, whoops 2017-04-10 13:51:41 -04:00
Briar Rose Schreiber a8c44da532 Adjust light theme tab bar area
Adds a material shadow below tab layouts. This is not very noticeable in
the default theme, but in the light theme in visually demarcates where
the tab layout ends.
2017-04-09 02:03:05 -07:00
Vavassor 1ebe514100 First minor release 2017-04-02 21:45:04 -04:00
Vavassor e46e50ac60 Clarifies a bit of the explanation on the login page. 2017-04-02 19:55:41 -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 4b136ce458 Light theme properly separated again, making it ready for palette changes. 2017-03-26 22:59:16 -04:00
Vavassor 9478cd4ea1 You can navigate to who favourited/reblogged you from clicking the notification now. Closes #11 2017-03-20 16:34:23 -04:00
Vavassor 70536ed001 Fixed some odd refresh behaviour and possibly the duplicate 20 statuses issue? 2017-03-20 03:03:03 -04:00
Vavassor 22b1472a3f Actually* fix the layout error on account pages. 2017-03-15 18:51:01 -04:00
Vavassor 5ae58ecac1 Merge branch 'Gargron-master' 2017-03-15 16:39:23 -04:00