chinwag-android/app/src/main/res/layout
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
..
activity_about.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_account.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_account_list.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_announcements.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_compose.xml Drafts v2 (#2032) 2021-01-21 18:57:09 +01:00
activity_drafts.xml Drafts v2 (#2032) 2021-01-21 18:57:09 +01:00
activity_edit_profile.xml update Android Image Cropper and get rid of deprecated onActivityResult (#2351) 2022-03-02 20:39:56 +01:00
activity_filters.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_license.xml update licenses (#2315) 2022-02-04 21:59:42 +01:00
activity_lists.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_login.xml Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
activity_main.xml set contentDescription for menu toggle (#2020) 2020-12-13 16:31:42 +01:00
activity_preferences.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_report.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_scheduled_toot.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_search.xml Migrate to ViewPager2 (#1544) 2019-11-06 20:17:53 +01:00
activity_statuslist.xml merge ModalTimelineActivity & ViewTagActivity into StatusListActivity (#2332) 2022-02-25 18:57:31 +01:00
activity_tab_preference.xml migrating to ViewBinding part 2: Activities (#2093) 2021-03-07 19:05:51 +01:00
activity_view_media.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
activity_view_thread.xml Upgrade deps (#1708) 2020-02-25 19:49:41 +01:00
card_license.xml explicitly set text colors in LicenseCard (#1910) 2020-08-26 18:46:44 +02:00
dialog_add_poll.xml Instance configuration: the easy parts (#2341) 2022-03-01 19:43:36 +01:00
dialog_emojicompat.xml convert EmojiPreference and EmojiCompatFont to Kotlin (#1922) 2020-09-02 12:27:51 +02:00
dialog_filter.xml Add the 'whole word' setting to the filter preferences UI (#1278) 2019-06-24 10:11:25 +02:00
dialog_mute_account.xml migrating to ViewBinding part 1: Dialogs + Views (#2091) 2021-03-07 19:04:22 +01:00
fragment_account_list.xml Error artwork (#1000) 2019-01-28 19:02:31 +01:00
fragment_accounts_in_list.xml fix list editing by moving account_ids from query to form param (#1690) 2020-02-18 08:45:10 +01:00
fragment_instance_list.xml Implement instance mutes (#1311) 2019-06-11 15:56:27 +02:00
fragment_report_done.xml Redesign report activity (#1295) 2019-06-09 16:55:34 +02:00
fragment_report_note.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
fragment_report_statuses.xml Redesign report activity (#1295) 2019-06-09 16:55:34 +02:00
fragment_search.xml migrating to ViewBinding part 4: Fragments (#2108) 2021-03-13 21:27:20 +01:00
fragment_timeline.xml migrating to ViewBinding part 4: Fragments (#2108) 2021-03-13 21:27:20 +01:00
fragment_timeline_notifications.xml remove scrolling from notification options bar (#1858) 2020-07-20 11:25:36 +02:00
fragment_view_image.xml Description improvements (#1846) 2020-08-01 21:48:51 +02:00
fragment_view_thread.xml Drafts v2 (#2032) 2021-01-21 18:57:09 +01:00
fragment_view_video.xml Audio caption improvements (#2220) 2021-09-17 21:55:54 +02:00
item_account.xml upgrade gradle, AGP and dependencies (#1818) 2020-06-04 20:16:48 +02:00
item_account_field.xml upgrade deps, fix some lint warnings 2019-02-11 16:59:01 +01:00
item_add_poll_option.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_announcement.xml [needs help] Support announcements (#1977) 2020-11-18 21:12:27 +01:00
item_autocomplete_account.xml Animate gif avatars (#1279) 2019-05-26 08:46:08 +02:00
item_autocomplete_divider.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_autocomplete_emoji.xml Add autocompletion for custom emoji (#1089) 2019-03-04 19:28:08 +01:00
item_autocomplete_hashtag.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
item_blocked_user.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_conversation.xml layout: move media preview to standalone xml and include it in containers (#2063) 2021-01-31 19:22:06 +01:00
item_draft.xml Drafts v2 (#2032) 2021-01-21 18:57:09 +01:00
item_edit_field.xml Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
item_emoji_button.xml ComposeActivity improvements (#548) 2018-04-13 22:37:21 +02:00
item_emoji_pref.xml migrating to ViewBinding part 3: EmojiPreference (#2094) 2021-03-07 19:06:05 +01:00
item_follow.xml fix follow message being cut off with large font (#1519) 2019-10-03 21:11:19 +02:00
item_follow_request.xml correctly align buttons in follow requests (#2342) 2022-02-25 18:58:01 +01:00
item_follow_requests_header.xml always show follow requests in main menu (#1809) 2021-04-10 20:30:44 +02:00
item_footer.xml fix account list loading and clean up a lot of code (#823) 2018-08-31 21:52:09 +02:00
item_hashtag.xml migrating to ViewBinding part 4: Adapters (#2095) 2021-03-07 19:24:01 +01:00
item_list.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_media_preview.xml Audio caption improvements (#2220) 2021-09-17 21:55:54 +02:00
item_muted_domain.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_muted_user.xml Implement optional notifications muting for account muting (#1856) 2020-07-27 10:28:59 +02:00
item_network_state.xml Tab customization & direct messages tab (#1012) 2019-02-12 19:22:37 +01:00
item_picker_list.xml migrating to ViewBinding part 4: Adapters (#2095) 2021-03-07 19:24:01 +01:00
item_poll.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_poll_preview_option.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
item_report_status.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
item_scheduled_toot.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
item_status.xml layout: move media preview to standalone xml and include it in containers (#2063) 2021-01-31 19:22:06 +01:00
item_status_bottom_sheet.xml Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
item_status_detailed.xml layout: move media preview to standalone xml and include it in containers (#2063) 2021-01-31 19:22:06 +01:00
item_status_notification.xml Notification bell (#2012) 2020-12-23 12:52:39 +01:00
item_status_placeholder.xml Tab customization & direct messages tab (#1012) 2019-02-12 19:22:37 +01:00
item_tab_preference.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
item_tab_preference_small.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
login_webview.xml Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
material_drawer_header.xml convert MainActivity to Kotlin and upgrade MaterialDrawer to version 8 (#1748) 2020-04-15 18:57:53 +02:00
notifications_filter.xml Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
search_view.xml Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
toolbar_basic.xml Drafts v2 (#2032) 2021-01-21 18:57:09 +01:00
view_background_message.xml Make image in BackgroundMessageView adapt to the height, fix #1618 (#1649) 2020-02-25 19:57:28 +01:00
view_compose_options.xml simplify ComposeOptionsView (#1734) 2020-03-24 21:07:10 +01:00
view_compose_schedule.xml remove ThemeUtils.getTintedDrawable (#2015) 2020-12-09 19:08:16 +01:00
view_poll_preview.xml Create polls (#1452) 2019-08-22 20:30:08 +02:00