Commit Graph

422 Commits

Author SHA1 Message Date
Tony Mantler
1dcdc09e03 Add "Add Account" to prefs headers
Borrowed + icon from authentication widget

b/16298155

Change-Id: I36d0eb2c7b9e98442d72481254d9a4da2ae3c999
2014-07-14 14:33:32 -07:00
Milos Stankovic
4fb4820223 Moving Previous, Next and Done strings to UnifiedEmail.
Other change: 500164
Change-Id: I2eb4fd00b62d18c523c3ec49eec6748eb602e7cd
2014-07-11 10:54:58 +00:00
Tony Mantler
06415a635f Unify settings activity
b/9566150

- Install PublicPreferenceActivity
- Create AccountServerSettingsActivity to contain all the crazy
    logic we don't want in AccountSettings
- Add restoreAccountWithAddress to Account
- Refactor almost everything out of AccountSettings
- Tidy the QuickResponse fragment
- Majorly refactor the AccountSettingsFragment to decouple it from
    the activity, and make it save settings immediately instead of
    when pausing
- Move login warning dialog to AccountSettingsFragment
- Tweak HeadlessAccountSettingsLoader

Change-Id: Ie69181d968b9c3e5940cfef9690b1f5c70e21aa8
2014-06-27 10:49:18 -07:00
James Lemieux
6dce0b1819 "No quick responses available" should display when all quick responses are deleted
b/14239989

We take advantage of ListView's feature that displays an entirely different
view in place when the backing Adapter is empty. The empty view is simply a
TextView displaying "No quick responses available".

Change-Id: I244ffd21fc4c1557c73979d4bb7c99306b11ebb2
2014-05-30 14:49:05 -07:00
Martin Hibdon
03d80363fa Merge "Update the font for account setup basics" into ub-mail-algol 2014-04-29 17:46:37 +00:00
Martin Hibdon
3264276e6c Update the font for account setup basics
b/14386385

Change-Id: Ica54796333b48bb04822406a6e2a719570840949
2014-04-28 14:58:50 -07:00
Martin Hibdon
eecebc3fe7 Fix a a problem in some button padding
I was using "10sp" instead of "10dp", and it needs to be
20dp anyway.

Change-Id: I31b1f770571968547f02920be90b05e27dd5419b
2014-04-23 17:54:18 -07:00
Martin Hibdon
bd7994295d Merge "Update more padding and layouts" into ub-mail-algol 2014-04-23 22:24:17 +00:00
Martin Hibdon
fefeddeaf0 Update more padding and layouts
b/14255447
The password label, edit text, and clear button were not
lining up correctly. Also, there needed to be more space
around the password edit text.

Change-Id: I71864733457b3b599160a6d9a44d48d2e23961ce
2014-04-23 15:17:09 -07:00
Martin Hibdon
b84087e641 Update font size for device Id
b/14255447

Change-Id: I4d994a934e1691c9bc8d2554df797fdba72d3767
2014-04-23 14:20:48 -07:00
Martin Hibdon
18e65df13a Fix some alignment issues on the certificate selector
b/14255447

Change-Id: Ic17b9ca2ff5c8196ddbed7e70d1eee0de941823f
2014-04-23 13:16:16 -07:00
Martin Hibdon
e0364574dc Merge "Update padding on some buttons, and adjust font size" into ub-mail-algol 2014-04-23 18:18:53 +00:00
Martin Hibdon
6c7b413097 Update padding on some buttons, and adjust font size
b/14255447

Change-Id: I641820217df3fa3953a5c88e04870d9596224392
2014-04-23 11:17:49 -07:00
Martin Hibdon
92581f7820 Move the setup nav buttons to the bottom on tablets
b/14187851
Now the bars on the sides for tablet landscape setup are actually
in the activity, not the fragment. The setup fragment template
is identical between tablet and phone, with any differences between
them contained in different styles or dimensions.

Change-Id: Id7005f73aa29ed6010e629873155eb5fdc8e818f
2014-04-23 10:34:16 -07:00
Martin Hibdon
2883e37f0a Update labels to be upper case
b/14257168

Change-Id: I1de342636aafb3778fee470d98d821abc76cfb37
2014-04-22 14:54:33 -07:00
Martin Hibdon
0dae4d3ffb Update a bunch of layouts
b/14169396
Swap the positions of the headline text and email image
on account setup basics
b/14257403
Swap the positions of the password and "signed in with XXX"
button on the credentials fragment
b/14255447
Adjust padding to fix a number of alignment issues.

Change-Id: I011e259a86123cf205d86407def2ff774744e005
2014-04-22 14:46:32 -07:00
Tony Mantler
7b350f101c Fix layout of standalone credential activity
b/14144228

Change-Id: Ic75f2444b74e101d25afd312ba94f5df3e8204c3
2014-04-18 11:06:24 -07:00
Tony Mantler
55dbea9fe0 Actually install the correct views when credentials fragment is in standalone mode
b/13638835

Change-Id: I7800cf0638097ae70c0b22384e2effc09c6ab2e3
(cherry picked from commit fe7c3228eb)
2014-04-10 23:06:08 +00:00
Tony Mantler
021fb3cd78 More layout tweaks
b/13640507

Change-Id: I0392671df101e263aba89abc8b949fe906f34ed0
2014-04-07 11:37:37 -07:00
Tony Mantler
6cbdd5bba0 Fix more IME actions
b/13544189

Change-Id: I5dbbf45a1b68cac2d63ba41c70daff9d33cbb492
2014-04-04 16:36:06 -07:00
Tony Mantler
36da789bc2 Fix IME actions for Names screen on setup flow
b/13544189

Change-Id: I251c28918c899b8237c6eee3bc3f0beface00a38
2014-04-04 15:56:38 -07:00
Tony Mantler
12890669c3 Prevent the IME from popping up when launching setup flow
b/13769774

Change-Id: I184f577cf40d0f43adcceee6ca9bede77f37d4d0
2014-04-04 13:48:42 -07:00
Tony Mantler
a67a905542 More "Manual Setup" button tweaks
b/13750692

Change-Id: I8e4c7cc1cb74af16998ec26aae506d30735ed068
2014-04-04 10:10:25 -07:00
Tony Mantler
392c263c19 Change 'Manual setup' into clickable text instead of a checkbox
b/13733521

Change-Id: I7f338cbfb8357c5e1a27c6e886ea96e5c6924d22
2014-04-01 14:11:15 -07:00
Tony Mantler
3b6b9172e4 More setup layout tweaks
b/13675117
b/13677552

Change-Id: I8a89d634f0c1d6e0766b6ecf0a839abc03864af6
2014-03-31 15:58:25 -07:00
Tony Mantler
5ee38b7444 Add more padding in setup flow for wide screens
b/13728657

Change-Id: Ib7c996d188b9f70cc4adbd2a7545c5f8a2099d87
2014-03-31 11:44:21 -07:00
Tony Mantler
296cde5603 Add disambiguation screen when user protocol choice differs from providers.xml
b/13640868

Change-Id: I75116f30e9c12d2e8b6757bf208e1519e438aed9
2014-03-28 17:08:04 -07:00
Tony Mantler
a1916415fa Move nav buttons to left and right on account setup flow
For extra-wide displays

b/13640931

Change-Id: Ibc99dc287b9bb3f125abe3f931a34589927443e7
2014-03-27 16:20:49 -07:00
Tony Mantler
c5e07960b6 Add giant yellow email logo to account setup screen
b/13677552

Change-Id: Icfd2e878fd62118486c347ae4737c5409a2e5c9b
2014-03-27 14:34:13 -07:00
Martin Hibdon
c0707dd3b4 Increase touch target for adding authentication
b/13642313

Change-Id: I9681cd6ad21e4da76cac3202dc61bdc49b978c71
(cherry picked from commit 7bf3bb9947)
2014-03-27 21:23:19 +00:00
Tony Mantler
20adb68b94 Begin fixing layouts for account setup flows
Also address some RTL issues

b/10784160
b/13544189
b/13585832

Change-Id: I5c86497940ce4b972e0ee9189418f120391a8833
2014-03-21 13:29:23 -07:00
Tony Mantler
254dde761f Fix setup flow dialog dismissal
Also remove redundant ok/cancel strings

b/13512724

Change-Id: Idfc7745fbf6a08f09051eb4a6154fc446b43eb67
2014-03-19 15:23:56 -07:00
Tony Mantler
ae980cd685 Account setup flow: Move button and headline handling into fragments
b/13508015

Change-Id: I9f7a09467fbee5a57985f36eaa47c2cc7b9d4086
2014-03-17 16:45:47 -07:00
Martin Hibdon
40baa96c3f Add the password failed warning text
Now, if you fail to authenticate on the credentials fragment,
instead of taking you to the full accountSetupIncoming,
it just takes you back to the credentials fragment with
a warning that your password is wrong.
Also, make it so that pressing "next" on the password IME behaves
the same as pressing the Next button.

Change-Id: Ice91c842659c33ba6f8ac876356a79265c703e2e
2014-03-12 15:19:11 -07:00
Tony Mantler
f05a87ab47 Buttons have states
Will wonders never cease?

b/13364213

Change-Id: I040529894a7607c3574c2fd7646cd53590f12431
2014-03-11 16:08:29 -07:00
Martin Hibdon
658231e207 Add certificate selector to credentials fragment
This doesn't work yet because the account type selection
screen doesn't not currently come up after the initial
setup screen. Also, right now we will always display the
cert selector, regardless of security type, because at
this point in the flow we haven't asked the user for that.

Change-Id: I8b4a13030cd6a4a8b243d7208d8df9798fd24bea
2014-03-11 12:56:51 -07:00
Tony Mantler
d195c85a89 Merge "Fix appearance and a11y of account setup navigation buttons" into ub-mail-master 2014-03-10 21:35:29 +00:00
Tony Mantler
44020f5e40 Merge "Convert manual setup to a checkbox" into ub-mail-master 2014-03-06 19:25:06 +00:00
Tony Mantler
2857b5d093 Fix appearance and a11y of account setup navigation buttons
b/13341957

Change-Id: I3664c83ef6c9016448fa6691bb27146fcb8144b4
2014-03-06 10:46:30 -08:00
Tony Mantler
7dfbd2e14d Add gradient to background of account setup flow.
I can't see the difference, can you see the difference?

b/13307488

Change-Id: I836a407c058286546df149709eef8392b854d07c
2014-03-05 16:36:49 -08:00
Tony Mantler
1b6292e2ab Convert manual setup to a checkbox
b/13312261

Change-Id: Ie71666e29f506bc4ca87aad62364592d9aa63c19
2014-03-05 14:10:44 -08:00
Tony Mantler
76472ae40c Merge setup fragments under a single activity
Change-Id: I10cf8bb9f6bc1a26ea97ae664f0196ae9e9493b5
2014-02-26 13:47:41 -08:00
Martin Hibdon
d9cec23689 Fix the build
I merged some previous changes wrong.

Change-Id: I8af86e398dc4875aae4251e821ac42b8b8fea354
2014-02-18 15:01:16 -08:00
Martin Hibdon
7190973877 Fix authentication view
Unfortunately, there are problems with making a single
view handle all kinds of authentication and certificate
selection. The layouts for the account settings screen
on phones versus tablets are just too different. So
now the certificate selection code has moved back to the
fragments themselves, and the authenticationView only
handles passwords and oauth.

Change-Id: I1ef0c69687a00029717b836458c85c1b0667ff95
2014-02-18 14:40:36 -08:00
Martin Hibdon
9cf99fcf1f Update assets for setup
Change-Id: I03a2224d95f72bdecab5d98e7a2075b40eac5795
2014-02-18 13:12:23 -08:00
Martin Hibdon
0962a44fc4 Merge "Update layouts for setup" into ub-mail-master 2014-02-14 23:42:22 +00:00
Martin Hibdon
8919f5738d Update layouts for setup
Change-Id: I5508f6f8640ffdf60f8d1d7282cc7ed3ce30f86c
2014-02-14 15:29:56 -08:00
Martin Hibdon
b9f8dbce19 Change account settings buttons back to text
We actually only want the nav arrows on initial
account setup, not in regular settings.

Change-Id: I02e153638e5df29c1fd7aa134db36bde9fc0666e
2014-02-14 13:30:02 -08:00
Martin Hibdon
87de90282b Make settings flow work for OAuth
Now the password entry is removed from AccountSettingsBasics,
and the user is taken to either SignInActivity or AccountSetupType
after hitting the next button. This is a lot closer to the
desired setup flow as it allows for oauth signin.

Ideally this is not what we will ship for Algol, but it put us
in a state where we could ship if we had to.

Change-Id: I5b28bccd27c515572e4947ca877bd1772732507d
2014-02-14 11:55:26 -08:00
Martin Hibdon
7b42720199 Fix some more setup layouts
This moves the nav buttons to the bottom of the screen, and
improves tablet layouts.

Change-Id: I20642c81b96307e4f45b1b3ad1337d4ff5aafd2e
2014-02-10 15:45:33 -08:00