Commit Graph

20 Commits

Author SHA1 Message Date
Ivan Kupalov 4d8289b245
Implement Login via WebView (#2371)
* Improve login process with newer APIs

* Implement login with WebView instead of browser tab or external browser

Oauth process requires us to open login prompt for correct instance and
we need to receive the result back. Usually it is done with redirect
parameter.

Previously we've been using BrowserTabs API and have been falling back
to just opening browser. This mostly worked but is very clumsy:

 - It relies on few system mechanisms for opening URLs in both
directions
 - Browsers do weird things and tend to break quite a bit
 - There's a good chance that the app can die in the process and we need
to recover our state.

So instead we are now using WebView. It has disadvantages (users have
to trust us to show correct page, logins are not shared w/ browser) but
it should be more reliable.

* Changes to login after review

* Move login classes to their own package

* Fix linting issues
2022-03-08 21:22:19 +01:00
Konrad Pozniak 83ced20e4a
add build customization options (#1532) 2019-10-29 20:30:46 +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
Konrad Pozniak 8930d277e6
add new elephant friends (#757)
* add new elephant friends

* add art license

* fix typo
2018-08-15 20:51:35 +02: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
Vavassor 1dc32323d5 Adds a higher-resolution elephant friend to the login page. Closes #99 2017-05-08 16:30:25 -04:00
Paul 17f347cab5 Add loading on login activity while fetching tokens 2017-05-08 11:24:30 +00:00
Conny Duck 310d9a3c91 use TextInputEditText instead of EditText inside TextInputLayout 2017-05-04 16:32:21 +02: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
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
Eugen Rochko 3798f9a803 Fix login activity crashes, repeated re-authentications,
layout when keyboard appears
2017-03-15 20:32:26 +01:00
Eugen Rochko ed262dfb2d Fix crash when adding media, make all activities use coordinator layout 2017-03-09 23:21:02 +01:00
Eugen Rochko 4060f3f45f Nicer login layout 2017-03-07 15:03:41 +01:00
Vavassor 96a5692717 Dark and light themes now exist and can be switched in preferences. 2017-02-16 13:52:55 -05:00
Vavassor 22a2a31afe Changed visual theme to a dark style. Also, set up things for a future switchable light/dark theme. 2017-02-13 00:18:17 -05:00
Vavassor 0a45b72391 Added logo and made login page slightly more clear. 2017-02-04 23:20:19 -05:00
Vavassor 6b684bceff Attaching media to toots is now possible. Images over the upload limit are automatically downsized, videos are not. 2017-01-16 13:15:42 -05:00
Vavassor bba1b37fd8 initial commit 2017-01-02 18:30:27 -05:00