Commit Graph

2705 Commits

Author SHA1 Message Date
Mario Bertschler e5c411e626 Minor accessibility change for app discovery item
am: fc2b3d2b8a

Change-Id: I8ebb397d368f83e7602f7f6fa6658ac89493d498
2017-05-22 17:58:38 +00:00
Mario Bertschler df346d9b59 Minor accessibility change for app discovery item am: fc2b3d2b8a
Change-Id: Id6794c68e3b222152d3d7a6413bb123109bc2a36
2017-05-22 16:22:14 +00:00
Mario Bertschler fc2b3d2b8a Minor accessibility change for app discovery item
Bug: 38345854

Change-Id: Ib200b5a6295eb26650c7f28d0b7823b489c70cda
2017-05-22 09:21:01 -07:00
Tony Wickham cbe6c2849e Rename "Settings" to "Home settings"
Bug: 37903251
Change-Id: Ia6a8b329135100af9b54900e275c5362695bfd74
2017-05-19 19:33:26 -07:00
Tony Wickham fda3107c8b Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval
am: 440052ce5d

Change-Id: I5d53a468bb4aa3060e3e7e618bfdbdb537a5aadc
2017-05-19 19:36:38 +00:00
Tony Wickham 3720c69322 resolve merge conflicts of 8af16760d to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I4cdfeebd09be58270c249429104d91dc9a31b49c
2017-05-19 12:17:02 -07:00
Tony Wickham 8aea3b185a resolve merge conflicts of d5dbf6175 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I2aefe84331c3236993bf23bd982d639b2ba2499e
2017-05-19 12:03:45 -07:00
Tony Wickham d5dbf61757 resolve merge conflicts of 02aced978 to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ib44ce0130b9eb01c354f18326d7d3a1eeb2c5eb8
2017-05-19 10:52:19 -07:00
Tony Wickham 95cb4e098d Don't set system shortcut text to white
am: 30e55d0f7c

Change-Id: Iab1977c0d2599cb1131ea3a9fa62dd6c15e56e69
2017-05-18 22:50:53 +00:00
Tony Wickham 30e55d0f7c Don't set system shortcut text to white
Bug: 38201638
Change-Id: Icacd63810306848ec1fb54e5dcc6021660ac5099
2017-05-18 15:31:19 -07:00
TreeHugger Robot 45febfec54 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-05-18 18:40:39 +00:00
TreeHugger Robot abd32f986d Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-05-18 18:38:41 +00:00
TreeHugger Robot 440052ce5d Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval 2017-05-18 18:34:04 +00:00
Tony Wickham 79222e9c3f Make expanded system shortcuts clickable am: cd58d0d4e5
Change-Id: If8148c3dc536a7c098f0d81a61afb006248e5baf
2017-05-18 18:17:15 +00:00
Tony Wickham cd58d0d4e5 Make expanded system shortcuts clickable
The textview on top was consuming the clicks, so we set it to
not be focusable (clicks are handled by the parent).

This regression was caused by a TextView bug introduced in
ag/2247666, which set clickable=true if focusable=true.

Bug: 38385679
Change-Id: I0a946073919dabcd19b47cd7df2a1fcac6946cd5
2017-05-18 11:16:58 -07:00
Tony Wickham 8af16760dc Merge "Update accessibility for popup" into ub-launcher3-dorval 2017-05-18 01:06:46 +00:00
Tony Wickham d1c496e5fe Merge changes from topic 'am-103e12ab-e4f5-4f1e-a8f6-6b164b13e8de' into ub-launcher3-master
* changes:
  Merge commit '18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8' into am-103e12ab-e4f5-4f1e-a8f6-6b164b13e8de
  Update accessibility for popup
  Update accessibility for popup
2017-05-18 01:06:46 +00:00
Bill Yi 0c098dc5a0 Import translations. DO NOT MERGE
Change-Id: I5b6795f9483c54daf9d0484bc370f056263979ac
Auto-generated-cl: translation import
2017-05-17 17:10:05 -07:00
Bill Yi 4915614962 Import translations. DO NOT MERGE
Change-Id: I14925e787ac1adbf5aa2e89cebc6c5b3548c7fe4
Auto-generated-cl: translation import
2017-05-17 17:08:22 -07:00
Bill Yi 2a7c820dac Import translations. DO NOT MERGE
Change-Id: I0e20d48d0f6eaedfa6d93fc7ed0b355c34e92a98
Auto-generated-cl: translation import
2017-05-17 17:05:55 -07:00
Sunny Goyal 233fbd7059 Adding an option to change the shadow size
am: 8b6ac00a1b

Change-Id: I6ebafb3b81f486adeb510bc021638dd266ca1234
2017-05-17 21:10:34 +00:00
Sunny Goyal 8b6ac00a1b Adding an option to change the shadow size
Change-Id: I8ec810c5cf06852771247af5f1d717f41079c4f5
2017-05-17 13:43:45 -07:00
Tony Wickham 9863ea5dc7 Merge "Add setting to turn off icon badging" into ub-launcher3-dorval
am: d315d07aee

Change-Id: Id23914cbee040f3916257e02a9eb6b3f5a821b83
2017-05-16 23:38:22 +00:00
Tony Wickham 02aced9782 Merge "Use a single color for all icon badges." into ub-launcher3-dorval 2017-05-16 23:34:52 +00:00
Tony Wickham 1cf5357c9b Merge changes from topic 'badge-color' into ub-launcher3-master
* changes:
  Fix merge conflicts
  Use a single color for all icon badges.
2017-05-16 23:34:52 +00:00
Tony Wickham d315d07aee Merge "Add setting to turn off icon badging" into ub-launcher3-dorval 2017-05-16 23:33:59 +00:00
Tony Wickham 7cee9e3bba Merge changes from topic 'badge-setting' into ub-launcher3-master
* changes:
  Add setting to turn off icon badging am: 2ab8482809
  Add setting to turn off icon badging
2017-05-16 23:33:59 +00:00
Mario Bertschler 3c3e6cb58f Design adjustments for transition from workspace to All apps.
am: 8acf8b506d

Change-Id: I68c0eaac758ac66548ac38a60bfb07642cfec34b
2017-05-16 23:29:48 +00:00
Mario Bertschler 8acf8b506d Design adjustments for transition from workspace to
All apps.

Change-Id: I0aeb8da7f0eebdf677ca7bda06fb538f08a6ee51
2017-05-16 16:13:11 -07:00
Tony 03ab95721f Fix merge conflicts
Change-Id: If2cabd5558421b8d325faf4f6d7d21b0beccaace
2017-05-16 15:28:56 -07:00
Tony Wickham 4d03da2325 Add setting to turn off icon badging am: 2ab8482809
Change-Id: I50da31d1a44d85a7d5cb91621186fb62c645cfd0
2017-05-16 21:09:03 +00:00
Tony Wickham 2ab8482809 Add setting to turn off icon badging
Redirects to system Notifications setting page.

Bug: 36815147
Change-Id: I5ee542f94ed51a73a57df3a726384944ff3ee71d
2017-05-16 14:08:42 -07:00
Mario Bertschler 7f91393c55 Merge "Minor polishment on app discovery UI." into ub-launcher3-dorval
am: 8ffddbb7c2

Change-Id: I611a4707882a0fb5c78c223ebd9f5c8e0e67d411
2017-05-16 20:13:42 +00:00
Tony Wickham e6a790e5ae Use a single color for all icon badges.
Bug: 38346375
Change-Id: I26b7ad3dcfea6a18e169d656e19605c9794eadd3
2017-05-16 13:04:23 -07:00
Mario Bertschler f81322b355 Minor polishment on app discovery UI. am: 0287a44c81
Change-Id: I9750202921873b3956146a5a8e80e260e1368afd
2017-05-16 18:49:08 +00:00
Mario Bertschler 0287a44c81 Minor polishment on app discovery UI.
b/38341964
b/38342208
b/38341681

Change-Id: I8dfe4f5431cbfa96573c0461fddd410367c9ad13
2017-05-16 11:48:23 -07:00
Sunny Goyal 054090ae2a Updating the icon shape override options
am: e7539e9be6

Change-Id: I5fa0da129b8173db1537562bdca67e1508ee2861
2017-05-16 16:45:59 +00:00
Sunny Goyal 47172cf55c Updating the icon shape override options am: e7539e9be6
Change-Id: I1fe4eb21811a0c01ca1608a7d2e60e05ff4d40be
2017-05-16 16:26:53 +00:00
Sunny Goyal e7539e9be6 Updating the icon shape override options
> Removing rounded rect and cylinder
> Adding tear drop shape
> Updating the label for default setting

Bug: 38216026
Change-Id: Ie31baef1171a78e2d95c617ef8fa8c669dd7c817
2017-05-16 16:26:39 +00:00
Sunny Goyal a485df1275 Adding support for top padding in BaseRecyclerView. The scrollbar is drawn below the top padding. Also adding callback for getting the all-apps vertical pull range so that it can be controlled by SearchUiManager
am: dc19a07aba

Change-Id: I8fda544ee42fcb330611519b1546e574fbd83c81
2017-05-16 00:25:56 +00:00
Sunny Goyal dc19a07aba Adding support for top padding in BaseRecyclerView. The scrollbar is
drawn below the top padding.
Also adding callback for getting the all-apps vertical pull range
so that it can be controlled by SearchUiManager

Bug: 37616877
Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
2017-05-15 14:14:04 -07:00
Tony 29676acfe2 Update accessibility for popup
- Content description includes count of notifications.
- Notifications have a dismiss action.
- All icons that support shortcuts will have action to show
  shortcut menu, since there will be system shortcuts even if
  there are no deep shortcuts.

Bug: 36564782
Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
2017-05-11 17:36:53 -07:00
Tony 18c4aa458e Update accessibility for popup
- Content description includes count of notifications.
- Notifications have a dismiss action.
- All icons that support shortcuts will have action to show
  shortcut menu, since there will be system shortcuts even if
  there are no deep shortcuts.

Bug: 36564782
Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
2017-05-11 13:59:52 -07:00
Sunny Goyal b53e96fa6a Merge "Adding listener support for color extraction changes Changing the apps-search layout to use theme attribute instead of hard coded layout id" into ub-launcher3-dorval-polish
am: 9968ed0932

Change-Id: I0794cf989605e875e46c688641c8e5ca1114e705
2017-05-11 19:51:51 +00:00
TreeHugger Robot 9968ed0932 Merge "Adding listener support for color extraction changes Changing the apps-search layout to use theme attribute instead of hard coded layout id" into ub-launcher3-dorval-polish 2017-05-11 19:46:28 +00:00
Tony e37d2b9f32 Merge "Visual updates for popup" into ub-launcher3-dorval
am: 5cfde85cb6

Change-Id: I4e97cb52054b5c5ff467f3481b92730f6f9a3e8e
2017-05-10 01:19:41 +00:00
TreeHugger Robot 5cfde85cb6 Merge "Visual updates for popup" into ub-launcher3-dorval 2017-05-10 01:10:55 +00:00
Tony Wickham 580256aed7 Visual updates for popup am: 0b8a6fe532
Change-Id: I56bb105e398632286540a82af003ac0095b1eaeb
2017-05-10 01:03:10 +00:00
Tony 0b8a6fe532 Visual updates for popup
- Update some dimens
  - Increase left padding for shortcuts
  - Adjust arrow and notification ellipsis offset accordingly
  - Align shortcut dividers to be same width as text
  - Notification text 14sp instead of 15sp
  - Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
  gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
2017-05-09 20:02:23 -05:00
Sunny Goyal 4249540ec5 Merge "Adding support for DB downgrade" into ub-launcher3-dorval-polish
am: 7588a8c391

Change-Id: I934f2b5f1f351c2ced78cbc647f4f744228ef57f
2017-05-09 23:08:03 +00:00
Sunny Goyal 05f30889d6 Adding support for DB downgrade
Adding a schema file for handling DB downgrade. This schema file is part of
the backup/restore set, and hence is available on a device with lower app version.

Bug: 37257575
Change-Id: I69c8ef5f28d5209be6e6679412c7459d4eeda5d0
2017-05-09 12:59:04 -07:00
Sunny Goyal 60820d796f Adding listener support for color extraction changes
Changing the apps-search layout to use theme attribute instead of hard
coded layout id

Bug: 37616877
Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
2017-05-09 12:41:50 -07:00
TreeHugger Robot f8b7e0831e Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish 2017-05-09 16:40:59 +00:00
TreeHugger Robot 8ab60c0399 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-05-09 16:40:56 +00:00
Bill Yi de21c36072 Import translations. DO NOT MERGE
Change-Id: I056d1b600137703e07d9c44c8a2ed98772eb0b1a
Auto-generated-cl: translation import
2017-05-09 02:37:05 -07:00
Bill Yi 2a891370af Import translations. DO NOT MERGE
Change-Id: Ie4f4f94bcf426096fd54a2d5b3c5d8d8c05b2049
Auto-generated-cl: translation import
2017-05-09 02:36:31 -07:00
Bill Yi 38d2add77b Import translations. DO NOT MERGE
Change-Id: I08a7f35261493f7a1591ab1207ae7758816e13e3
Auto-generated-cl: translation import
2017-05-09 02:34:17 -07:00
Sunny Goyal 78e8ab8992 Moving apps search related logic into a custom layout file
am: 161f96bc77

Change-Id: I241eccb4d07ecb4057184ae2861c9e748186323f
2017-05-08 22:41:21 +00:00
Sunny Goyal 161f96bc77 Moving apps search related logic into a custom layout file
This will allow derivative projects to easily change the search behavior
by simply overriding the xml file

Bug: 37616877
Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
2017-05-08 14:43:32 -07:00
Tony e5931a552a Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval
am: b77aa69eee

Change-Id: Ie206f8f66b45ad9dfe2c085b5087a4600c0d41b0
2017-05-04 23:09:13 +00:00
Tony Wickham d88e6bd7f8 Fix center-align issue in widgets bottom sheet am: 9d3743c3a8
Change-Id: I84b995b8e991a50c0aec4f36836fbea7668971cc
2017-05-04 22:53:29 +00:00
Tony 9d3743c3a8 Fix center-align issue in widgets bottom sheet
- Remove paddingStart
- To add padding for multiple widgets, add empty view to scrollview

Bug: 37918677
Change-Id: I5ec1208765874dda1c4439f60aaeb989c06ccd63
2017-05-04 15:53:15 -07:00
Mario Bertschler c9c955a9fd Merge "All Apps transition with gradient and scrim." into ub-launcher3-dorval-polish
am: db67e7c7a3

Change-Id: I2d418d73b3957938ab6072e92fdd69ac45d385e7
2017-05-03 18:06:51 +00:00
Mario Bertschler 48198d004a All Apps transition with gradient and scrim.
The transition is behind a feature flag and
turned off by default.

Change-Id: I155840ba82b5a573d874376797db5f739a52d706
2017-05-03 10:32:57 -07:00
Jon Miranda 45cc90f0be Fix bug where system shortcuts text size is set to 0 in MW mode.
am: da8261cce3

Change-Id: I1dfb3d6b655ebba8b8a9637a8e3a61fe7e0355e5
2017-05-02 20:49:49 +00:00
Jonathan Miranda 01233dd02e Fix bug where system shortcuts text size is set to 0 in MW mode. am: da8261cce3
Change-Id: I8a58db7202d4dc8ab50829bfd1c79a0d3e95dbe6
2017-05-02 19:51:11 +00:00
Jon Miranda da8261cce3 Fix bug where system shortcuts text size is set to 0 in MW mode.
By default, the BubbleTextView sets the display to Workspace
mode, which sets the text size to be 0 in MW mode.

Bug: 37898830
Change-Id: I665611b9986f1025d54b7ddb80746d4016003313
2017-05-02 12:49:33 -07:00
Sunny Goyal cbdfe0d0ea Merge "Creating a custom drawable to customize shadow." into ub-launcher3-dorval-polish
am: 41fae0a1a2

Change-Id: Ifad58277d67aad491ad37c0244fa0c98ee1c3608
2017-05-02 17:33:41 +00:00
TreeHugger Robot 41fae0a1a2 Merge "Creating a custom drawable to customize shadow." into ub-launcher3-dorval-polish 2017-05-02 17:29:21 +00:00
The Android Open Source Project 448bf2e182 Import translations. DO NOT MERGE
Change-Id: I06403631d61d5852455e12297cfbfdf1dc3a455a
Auto-generated-cl: translation import
2017-05-02 03:40:19 -07:00
The Android Open Source Project 2023510fea Import translations. DO NOT MERGE
Change-Id: I7384c07c2925bf394171475f74443649f2f7d853
Auto-generated-cl: translation import
2017-05-02 03:39:04 -07:00
The Android Open Source Project 3fb17b1ca6 Import translations. DO NOT MERGE
Change-Id: I06d773eb648c315dd683fdc353be5a3f34e91f2e
Auto-generated-cl: translation import
2017-05-02 03:36:29 -07:00
Tony Wickham e794f1033d Re-enable badges, with all dots am: f77a6f7fd7
am: 19d2e7fc55

Change-Id: Idd130cb89d097dd76eb0a695fe1bdf4adeb1f20d
2017-04-27 21:58:29 +00:00
Tony Wickham 19d2e7fc55 Re-enable badges, with all dots
am: f77a6f7fd7

Change-Id: I139ea47c73ee01a2777132f63b1d8add687579b0
2017-04-27 21:49:08 +00:00
Tony Wickham f77a6f7fd7 Re-enable badges, with all dots
Also updated folder badge (dot) color to light gray,
added notification header back (with same number as
before, where each notification counts as >= 1),
and increased shadow opacity for the dots.

Change-Id: I53a3e0d94f23f482b55b3c10a922939ebb381314
2017-04-27 14:04:56 -07:00
Tony Wickham df62796cd8 Remove notification listener to disable badging am: ead1680e96
am: 22f8f9fc4b

Change-Id: I9519a6c8132213a4ff133a6ad79cd14d31f526bd
2017-04-27 20:38:13 +00:00
Tony Wickham 22f8f9fc4b Remove notification listener to disable badging
am: ead1680e96

Change-Id: Ie83df1b0dc9dba350ff65d8cc96d324ca79e0ae0
2017-04-27 20:36:43 +00:00
Tony Wickham ead1680e96 Remove notification listener to disable badging
Bug: 37748653
Change-Id: I80d9f7c5274604f552113c7be0319d5cd454b29c
2017-04-27 12:57:05 -07:00
Sunny Goyal da1dfa32d0 Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start
causing unnecessary draw

Bug: 37616877
Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
2017-04-27 05:35:28 -07:00
Jonathan Miranda e30a4d1734 Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval am: b85f5dfcba
am: b0086a8945

Change-Id: I59e0cc1f7683143886884de3bcf4c250a4df9cb1
2017-04-26 18:01:06 +00:00
Jonathan Miranda b0086a8945 Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval
am: b85f5dfcba

Change-Id: I14d1b89986502047eb36b2c64d0656f9f9616e0b
2017-04-26 17:59:06 +00:00
Jonathan Miranda b85f5dfcba Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval 2017-04-26 17:53:25 +00:00
Jon Miranda 4e08b5b8ba Set the alpha to 1 when overview button is focused.
Bug: 37569953
Change-Id: I5c2acde3b5b443fe21e869d52bb9d2f8d98a914d
2017-04-26 08:39:12 -07:00
TreeHugger Robot 55739a4226 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish 2017-04-26 15:10:50 +00:00
Bill Yi 4ec7505e57 Import translations. DO NOT MERGE
Change-Id: Ie8a4b0c51ad52d1e38c7b9f0b31c9b849fc7b860
Auto-generated-cl: translation import
2017-04-26 05:51:11 -07:00
Bill Yi d0e4b7a192 Import translations. DO NOT MERGE
Change-Id: Ief71f0fdcb1680de34a4927fd8d63736cfb9282b
Auto-generated-cl: translation import
2017-04-26 05:50:27 -07:00
Bill Yi 7e07755349 Import translations. DO NOT MERGE
Change-Id: I9c3d417862f2ae0c30ed1ee9245d00b04a2624ad
Auto-generated-cl: translation import
2017-04-26 05:48:55 -07:00
Sunny Goyal d519052281 Separating top and bottom paddings for the hotseat
Bug: 37616877
Change-Id: I2f187576c28d62f9bb8257c9b9295edb7a8e44c0
(cherry picked from commit 751e41eb66)
2017-04-26 06:00:21 +00:00
Tony Wickham 0e96f3fea9 Merge "Update icon badges to match spec" into ub-launcher3-dorval
am: 0fa96ea2f6

Change-Id: I5f8e6bdbca13435d54e3b636564f7d3eef58ca5c
2017-04-25 23:59:41 +00:00
Tony Wickham b842e06245 Merge "Update icon badges to match spec" into ub-launcher3-dorval
am: 0fa96ea2f6

Change-Id: Ib81cc7eb79d265a82eedaeaec4630772c8c17ecf
2017-04-25 20:12:06 +00:00
TreeHugger Robot 0fa96ea2f6 Merge "Update icon badges to match spec" into ub-launcher3-dorval 2017-04-25 20:02:37 +00:00
Tony Wickham 1237df0a7c Update icon badges to match spec
- Size defined as percentage of app icon size
- Width changes when there are 2 or 3 digits (round rect)
- Offset slightly away from the app icon
  - Had to move drawing to BubbleTextView instead of
    FastBitmapDrawable
- Hide badge when dragging and while popup is open
- Tweaks for some color/text parameters

Bug: 35744066
Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
2017-04-25 12:55:02 -07:00
Sunny Goyal 751e41eb66 Separating top and bottom paddings for the hotseat
Bug: 37616877
Change-Id: I2f187576c28d62f9bb8257c9b9295edb7a8e44c0
2017-04-24 03:07:34 -07:00
Bill Yi 3e8273be69 Import translations. DO NOT MERGE
Change-Id: I956ea69f07f57aaa24942968219d18178fb2c1d2
Auto-generated-cl: translation import
2017-04-20 20:43:14 -07:00
Bill Yi 8c5f2f561a Import translations. DO NOT MERGE
Change-Id: I2ae8231a21881c4546bf042778f6e29940ca91d8
Auto-generated-cl: translation import
2017-04-20 20:41:42 -07:00
TreeHugger Robot 8c6a2b2244 Merge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into ub-launcher3-dorval 2017-04-17 23:35:38 +00:00
Tony Wickham 1c2291de86 Rename WidgetsAndMore to WidgetsBottomSheet
am: 343a77e609

Change-Id: I3d0c3e3a4ec1225781421567cfd9f2ea1d676bc0
2017-04-17 18:59:05 +00:00
Tony Wickham 343a77e609 Rename WidgetsAndMore to WidgetsBottomSheet
(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
2017-04-17 11:44:41 -07:00
Tony Wickham 65a585946b Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval
am: 8ae09bc376

Change-Id: I9052e1e0c85d2e2c76ed47c4c34ea9fb92e8825a
2017-04-17 18:36:05 +00:00
Tony Wickham 8ae09bc376 Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval 2017-04-17 18:30:13 +00:00
Tony 58292674e5 Slightly round corners of popup arrow
Bug: 35766387
Change-Id: I8d2be54c977074dbcf0d5884f44347edd0217bb5
2017-04-17 10:25:49 -07:00
Hyunyoung Song c1cf75716b [DO NOT MERGE] legacy icon treatment / circle detection
Bug: 37357483

Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395
2017-04-16 21:57:58 -07:00
TreeHugger Robot 95e3c0815c Merge "Rename language+country resources to just language" into ub-launcher3-master 2017-04-14 01:13:07 +00:00
Tony Wickham 14780f60c5 Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
am: 3741f8d9da

Change-Id: If6fbb0dcd5ea8a947c586bddc624b98436863f92
2017-04-13 23:07:57 +00:00
Tony Wickham 3741f8d9da Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval 2017-04-13 22:55:58 +00:00
Roozbeh Pournader 07fc44efeb Rename language+country resources to just language
Bug: 26496609
Test: none
Change-Id: I2f002b4c35834dcde303ce700cc47c885750e56f
2017-04-13 13:57:53 -07:00
Tony Wickham c66c3e2ba4 Fix build - move system shortcut icon colors to theme
Change-Id: Iae248e5fdd57310adeb898305deee4c0eaee5318
2017-04-13 12:24:42 -07:00
Tony Wickham b5ac4ed5ec Update widgets bottom sheet to match redlines
- Remove "Configurable shortcuts" row, and put all widgets in one row
- Update some sizes and colors and text
- Center widget row if only one widget

Bug: 35766387
Change-Id: Ic3850feadee1cbbbdd68a772f597741d54949703
2017-04-13 12:12:52 -07:00
TreeHugger Robot 14a499aff7 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-04-13 13:52:06 +00:00
Bill Yi 2af7e1e574 Import translations. DO NOT MERGE
Change-Id: Ic0fcaa61a226e5123cc22713911a4d5113d39400
Auto-generated-cl: translation import
2017-04-13 03:57:49 -07:00
Tony Wickham 5a2a655475 Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval
am: 25e8f6d83e

Change-Id: I8ea2798c98033d395e4afbbb5d86957518f33c22
2017-04-12 22:47:13 +00:00
Tony Wickham 25e8f6d83e Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval 2017-04-12 22:35:51 +00:00
Tony Wickham d690d68f97 Add app info icon with no shadow for popup
- Also changed opacities of the system shortcut icons to match spec
  (38% black in header, 54% when expanded view is shown)

Bug: 35766387
Change-Id: I73881bf1c72c98d78a38d82c632c4954b02eff4e
2017-04-12 14:38:37 -07:00
Tony Wickham bb3c1f8f7c resolve merge conflicts of ce44516dd to ub-launcher3-master
Change-Id: I6f4455c1d4bedf778850acbb1e1c7372d532e13a
2017-04-11 17:26:50 -07:00
Tony Wickham ce44516dd8 Update popup to match redlines
- Update specs in dimens.xml and colors.xml
- Move notification count to top right, and keep "Notifications" in left
    - Also removed NotificationHeaderView and instead use FrameLayout
- Limit to 2 shortcuts instead of 3 if there are notifications
- Use SP instead of DP for text (b/35869307)

Bug: 35766387
Change-Id: I892640933ad6351946af3df6c805b98bb4e7cb50
2017-04-11 16:44:38 -07:00
Tony Wickham 7fc94d7aac Merge "Disable notification listener on pre-26" into ub-launcher3-dorval
am: cd4cc97f6f

Change-Id: I6e1a2de2ece9308f057e6cdea1a3a50b2dd32962
2017-04-10 23:31:42 +00:00
Tony Wickham cd4cc97f6f Merge "Disable notification listener on pre-26" into ub-launcher3-dorval 2017-04-10 23:19:52 +00:00
Tony Wickham 5632e183f3 Disable notification listener on pre-26
Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac
2017-04-10 15:31:43 -07:00
Sunny Goyal 7019716620 Merge "Marking icon paths as non-translatable" into ub-launcher3-dorval
am: 3b31df70ea

Change-Id: I1130bc6e1a55f92ded5e44fd2c571e8d47013099
2017-04-10 18:41:54 +00:00
Sunny Goyal c3c4447fa6 Marking icon paths as non-translatable
Change-Id: Ifbe6c5a7edbc3ea361ae4a8ee38f9cde681813dc
2017-04-10 08:27:56 -07:00
Bill Yi c974115e06 Import translations. DO NOT MERGE
Change-Id: I5d54346e6ef1cc6b38229156698bf870035d2884
Auto-generated-cl: translation import
2017-04-07 22:22:41 -07:00
Bill Yi 51c4369af1 Import translations. DO NOT MERGE
Change-Id: I8caf65bc71dd6114dc08746f69f693a8da9799f6
Auto-generated-cl: translation import
2017-04-07 22:20:58 -07:00
Sunny Goyal 740e90144a Adding support for dynamically change icon shape for AdaptiveIcons
am: ca18746163

Change-Id: Ic4c14ad1760930735a881926aac8b45efe0cdba0
2017-04-04 19:52:22 +00:00
Sunny Goyal ca18746163 Adding support for dynamically change icon shape for AdaptiveIcons
> This would allow developers to verify their icon designs on different
device configurations
> This settings is only visible when developer settings is enabled

Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a
2017-04-04 12:33:59 -07:00
TreeHugger Robot 07372b5333 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-03-31 21:50:30 +00:00
TreeHugger Robot aa57e97dc8 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-03-31 21:25:37 +00:00
Bill Yi 1877176ddb Import translations. DO NOT MERGE
Change-Id: I7567ca77e4f54c06f40362e85a398c131e51f84b
Auto-generated-cl: translation import
2017-03-30 18:27:10 -07:00
Bill Yi d97b2b176c Import translations. DO NOT MERGE
Change-Id: I6e43f5ea27bb929b545923d7da58f56d57b2e57f
Auto-generated-cl: translation import
2017-03-30 18:26:20 -07:00
Tony ca4e6b4b59 resolve merge conflicts of 26b174659 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ifb24f291b096b979044e5c87ec58c24e9c479728
2017-03-30 18:10:05 -07:00
Tony Wickham 26b1746593 Add support for system shortcuts in popup container
- Currently the system shortcuts are just widgets and app info
- As shortcuts, they live in ShortcutsItemView
- They are populated either as icons only (if there are deep
  shortcuts) or as icons + text
- Widgets are disabled until binding them is complete (we request for
  them to be bound on long-press now). We should revisit this.

Bug: 34940468
Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
2017-03-30 16:35:56 -07:00
Tony Wickham 52f0130a76 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval
am: d73fbb5f97

Change-Id: I5d1bad3ea83e672076dbd3b6f2d80d5149f3921c
2017-03-30 23:26:12 +00:00
Tony Wickham d73fbb5f97 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval 2017-03-30 23:21:39 +00:00
Tony Wickham 50e5165b78 Add WidgetsAndMore bottom sheet
- Contains two rows, one for widgets, and one for "configurable
  shortcuts" that have customization activities
- Extends AbstractFloatingView and uses VerticalPullDetector for
  touch interactions
- No way to show this currently; will add options to popup in followup

Bug: 34940468
Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd
2017-03-30 15:48:53 -07:00
Sunny Goyal 65caaf60ce Updating some strings in add widget/shortcut flow
am: 6634869bad

Change-Id: I6b528ade9676254ed050d4e2c373227ce0b903b2
2017-03-30 19:49:58 +00:00
Sunny Goyal 6634869bad Updating some strings in add widget/shortcut flow
Bug: 36725328
Change-Id: I1006a48201fc5abb5c1f70c244c79a63f3195565
2017-03-30 12:31:06 -07:00
Jon Miranda 733abf02d1 Fix folder animations in spring loaded mode + polish.
* Changed interpolators.

Bug: 36653850
Bug: 35064148
Change-Id: I44a732be969582f718d7dc2f82a9f976331821cb
2017-03-29 16:42:02 -07:00
Mario Bertschler d6756af623 Show recently used instant apps provided by the app discovery service in the same section as installed apps.
am: 853c13d427

Change-Id: I852e85f5b715d7f9ecc903bb0b9020e87c19cd99
2017-03-23 23:30:09 +00:00
Mario Bertschler 853c13d427 Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e
2017-03-23 15:41:17 -07:00
Jon Miranda ce74d2a813 Smoother folder animation tweaks.
1. Start preview item animations later opening
2. Finish item animations sooner when closing
3. 1 & 2 allow the preview items to move as part of
   the Folder and allows for a smoother animation
4. Remove setCurrentPlayTime as it is O API.

Bug: 36522198
Bug: 35064148
Change-Id: If63d4d032078ff4e28b72a09e35da3a71f1d0e27
2017-03-23 14:04:55 -07:00
Jonathan Miranda dea487502d Merge "Add padding to pending widget background." into ub-launcher3-dorval
am: e04aa92de3

Change-Id: Ia93d71c3f7ae43fe6bbaef17a098b2e4d84df5de
2017-03-20 23:38:52 +00:00
Jon Miranda 5150d59603 Add padding to pending widget background.
Bug: 36450202
Change-Id: I12c754d0ff1ac2f9a63d2e475bff5524fe51cb57
2017-03-20 14:51:43 -07:00
Hyunyoung Song 7a5a355ab8 Make LEGACY_ICON_TREATMENT flag work
- targetSdk needs to be 26
- android:color attribute has been deleted

Change-Id: I6b1fc5402233fb8844b475d562984cf6924e33ac
2017-03-20 14:26:46 -07:00
Bill Yi b52d61db7e Import translations. DO NOT MERGE
Change-Id: Ibf2574d0c79c4dd1e0f44bcdc1b89caab9fabc01
Auto-generated-cl: translation import
2017-03-18 04:30:10 -07:00
Bill Yi 1bc2305d4c Import translations. DO NOT MERGE
Change-Id: I6bd0e70df3bba61196c3eb6a9c33a8800d236648
Auto-generated-cl: translation import
2017-03-18 04:29:18 -07:00
Sunny Goyal afc3f09240 Adding support for showing the widget preview based on the provided RemoteViews
am: c65a0085d7

Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
2017-03-17 18:41:31 +00:00
Sunny Goyal c65a0085d7 Adding support for showing the widget preview based on the provided RemoteViews
Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
2017-03-17 11:25:29 -07:00
Jon Miranda 477d2cbfd8 Allow TalkBack to read sectional headings on Widgets screen.
am: efd5cbf55c

Change-Id: Ib0bd61b94739ff4fd3b9ce866e33f4b7088a6846
2017-03-16 22:39:07 +00:00
Jon Miranda efd5cbf55c Allow TalkBack to read sectional headings on Widgets screen.
Bug: 35027834
Change-Id: Ice512bac83d818a4f8dca6d5f4b041a6bfa4df67
2017-03-16 15:21:25 -07:00
Sunny Goyal 4eaacc7485 Merge "Defining HomeScreenElementTheme for elements which appear on top of wallpaper" into ub-launcher3-master 2017-03-13 18:58:03 +00:00
Bill Yi ec191d7c51 Import translations. DO NOT MERGE
Change-Id: I8129a870f11208d842a0b5cffaeb0ae7c3be2c06
Auto-generated-cl: translation import
2017-03-11 21:33:53 -08:00
Bill Yi 372fadc9f1 Import translations. DO NOT MERGE
Change-Id: I3ab8f241299226e0453e654fdbde113646349190
Auto-generated-cl: translation import
2017-03-11 21:32:36 -08:00
Sunny Goyal ec37c50b63 Adding broadcast receiver to handle SESSION_COMMIT broadcast
am: 4179e9b88f

Change-Id: Ida895e5723b5d6d02b72ce7b04666b529eabb1cc
2017-03-10 20:20:48 +00:00
Sunny Goyal 4179e9b88f Adding broadcast receiver to handle SESSION_COMMIT broadcast
> Disabling Install shortcut broadcast for O and above
> Adding a preference to control automatic icon addition on homescreen
> Adding icons on homescreen for new installs based on the above preference

Bug: 32920609
Bug: 27967412
Change-Id: I92e5cb7c841fb445dc8bc058d975f212ee54f8d1
2017-03-09 10:56:09 -08:00
Jon Miranda 5f3f4d4280 Added new interpolators for preview items in large folders.
With larger folders, we want the preview items to reach their final positions faster
(when opening) and later (when closing) so that they appear aligned with the rest of
the folder items when they are both visible.

Bug: 35064148
Change-Id: I170ac2db36a3a20ebe5505711ea59e625050bc1b
2017-03-08 12:22:34 -08:00
Jon Miranda 4717011626 New folder animations.
Added FolderAnimationManager, which manages the opening
and closing animations.

All of the animations are done in the Folder.
ie. When the users taps on the FolderIcon, we immediately hide the
FolderIcon and show the Folder inits place before starting the animation.

Bug: 35064148
Change-Id: Icacdbbf78a25489f2eab4fd352f2c6ed71eb710b
2017-03-06 16:25:54 -08:00
Bill Yi ebb6dd7aa6 Import translations. DO NOT MERGE
Change-Id: I58011b44e3012ad2f34d77483f17e0708537f1eb
Auto-generated-cl: translation import
2017-03-06 06:31:19 -08:00
Bill Yi d896d1c29f Import translations. DO NOT MERGE
Change-Id: I438eb3210577fca407121d91cda2223090fd31f4
Auto-generated-cl: translation import
2017-03-06 06:30:32 -08:00
Mario Bertschler d6e5577e0f Merge "App discovery integration in All Apps search" into ub-launcher3-dorval
am: 86515dd148

Change-Id: I9c912d0ccec6c999547b1bce1f3e3b0b430a147f
2017-03-04 00:11:18 +00:00
Mario Bertschler 86515dd148 Merge "App discovery integration in All Apps search" into ub-launcher3-dorval 2017-03-04 00:05:40 +00:00
Hyunyoung Song 1e4168ffb1 Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval
am: 61d351fe82

Change-Id: I6164a86a2205fbf006e635c7010142df764deac6
2017-03-03 21:19:36 +00:00
Hyunyoung Song 61d351fe82 Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval 2017-03-03 21:16:37 +00:00
Mario Bertschler 0fc6f684e7 App discovery integration in All Apps search
This is the basis for app discovery integration while searching in all apps.
This does NOT include binding to the actual service and retrieving results,
but instead provides all the UI to show suggested instant apps and apps
from a store with star rating and pricing.

Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
2017-03-03 13:05:57 -08:00
Hyunyoung Song 837eb1f47d Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08:00
Sunny Goyal 1dd790b43d Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval
am: 4ff3457e77

Change-Id: Ib6e1f0228ccf74613e26be3d2775b87ab38082d4
2017-03-03 20:15:02 +00:00
Sunny Goyal 4ff3457e77 Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval 2017-03-03 20:10:29 +00:00
Tony Wickham 3e90d4350a Update notification visuals (part 2)
am: 9407d4ab57

Change-Id: Ie6a8c6605fdb115fee6c46a0e7b60f1e5a3525ac
2017-03-02 19:51:02 +00:00
Tony Wickham 9407d4ab57 Update notification visuals (part 2)
- Background is now white, and color beneath and divider color
  updated accordingly (not from color extraction)
- Removed overflow text ("+6") and added it to a header
  ("6 Notifications"). Use "..." instead if there is an overflow.
- Even spaced out icons in notification footer between the
  far right icon and the ellipsis
- Remove code to change arrow tint, since it is always white
  now. This also fixes the issue where it was drawn as a rect.

Bug: 35766387
Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
2017-03-02 11:27:16 -08:00
Tony Wickham f41b889b38 Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval
am: 12fec49834

Change-Id: I7662f40eade7665f2aa1aba2e341c4ed126a8f14
2017-03-01 19:01:19 +00:00
Tony Wickham 12fec49834 Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval 2017-03-01 18:57:22 +00:00
Tony Wickham 51889b0be8 Merge deep shortcuts in rounded rect
- DeepShortcutViews are added to ShortcutsItemView, which
  is in PopupContainerWithArrow
- Moved some shortcut-specific logic to ShortcutsItemView
  (namely, touch/long-click handling for draggin shortcuts)
- Moved round-rect clipping to PopupItemView
- Removed collapseToIcon() logic, including
  PillWidthRevealOutlineProvider, which was only used for
  that purpose. It isn't necessary now that the deep
  shortcuts have no background themselves.
- Replaced focus pill drawable with ripple effect on
  shortcuts and notification view.

Bug: 35766387
Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
2017-03-01 10:16:16 -08:00
Bill Yi 6da272816e Import translations. DO NOT MERGE
Change-Id: I90e9961d90f475836e1b0344c9aefc9d17a7b40f
Auto-generated-cl: translation import
2017-02-27 19:28:29 -08:00
Bill Yi 1cb518db18 Import translations. DO NOT MERGE
Change-Id: I81729ad91123d3dc3c365d09f2c7027f62411755
Auto-generated-cl: translation import
2017-02-27 19:27:58 -08:00
Sunny Goyal a535ae423b Moving Event dispatcher definition from LAuncher to BaseActivity so that
it can be used in other activities as well.

Bug: 34766840
Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
2017-02-27 10:09:09 -08:00
Tony Wickham 7f3526a1a4 Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
  left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height

Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
2017-02-24 12:09:06 -08:00
Sunny Goyal 2a76e3fbc6 Removing custom state definition from FastBitmapDrawable
> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable

Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
2017-02-23 16:15:25 -08:00
Bill Yi 25867b8c92 Import translations. DO NOT MERGE
Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import
2017-02-22 07:53:34 -08:00
Sunny Goyal 80f4c9d830 Enabling translation for string relates to Add to homescreen confirmation prompt
Bug: 34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
2017-02-17 12:11:24 -08:00
Sunny Goyal 9b29ca5add Defining HomeScreenElementTheme for elements which appear on top of
wallpaper

> Using HomeScreenElementTheme for workspace items
> Fixing view inflation where wrong layout inflater was being used

Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
2017-02-17 11:37:30 -08:00
Sunny Goyal 519fbdb2b3 Merge "Simplifying some launcher themes" into ub-launcher3-master 2017-02-17 17:53:58 +00:00
TreeHugger Robot dd88dd16c5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-02-17 07:43:38 +00:00
Bill Yi 953f9f90c5 Import translations. DO NOT MERGE
Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import
2017-02-16 23:31:06 -08:00
Adam Cohen 09f5a96a71 Merge "Add notification listener back to the manifest" into ub-launcher3-master 2017-02-17 00:50:57 +00:00
Tony 4d8019abf4 Add notification listener back to the manifest
This reverts commit d27b65d4d0.

Also added boolean to values/ and values-v25/ and values-v26/
to enabled/disable the listener by API version.

Bug: 35443111
Bug: 33553066
Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
2017-02-16 16:38:54 -08:00
Sunny Goyal 1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00
Sunny Goyal 7d87cb1a6e Updating the shortcut preview generation logic
Drawing a shortcut icon on a white round-rect with shadow
Also center aligning the preview

Bug: 34819119
Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
2017-02-16 13:41:04 -08:00
Sunny Goyal c9f844db2b Merge "Updating the default widget preview generation logic" into ub-launcher3-master 2017-02-09 18:25:06 +00:00
TreeHugger Robot c99b30b01f Merge "Updating widget tray theme" into ub-launcher3-master 2017-02-09 18:24:16 +00:00
Sunny Goyal d5d5e22715 Updating widget tray theme
Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.

Bug: 34819119
Bug: 34897402
Bug: 21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
2017-02-09 10:16:22 -08:00
Sunny Goyal 92bbfa19c3 Updating the default widget preview generation logic
We draw a while round rect box which is divided into the cells to
represent the widget size. The app icon is drawn in the center
for this white box.

Bug: 34819119
Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
2017-02-08 15:28:02 -08:00
Tony Wickham 3cdda5fa8b Merge "Show notification icon in place of "1" in badge." into ub-launcher3-master 2017-02-07 18:57:32 +00:00
Tony Wickham a799bed803 Show notification icon in place of "1" in badge.
- When notifications update, add the NotificationInfo to the
  BadgeInfo if there is only one for an app. BadgeRenderer
  will use the NotificationInfo to get the icon to draw.
- When retrieving the icon from the NotificationInfo, we draw
  it into a shader (similar to MaskableIconDrawable), which is
  rendered by BadgeRenderer.
- For now, we only use the notification icon if it is large.

Bug: 34839959
Bug: 32410600
Bug: 33553066
Change-Id: I31851804008dd15bab75d2759441187830c3265e
2017-02-07 09:48:43 -08:00
Sunny Goyal 96ac68a481 Updating the PreloadIconDrawable
> The drawable gets the path from MaskIconDrawable path, instead of
  using a circle
> The progress changes are animated as well

Bug: 34831873
Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
2017-02-06 10:43:27 -08:00
TreeHugger Robot cf23ef3000 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-01-31 07:28:28 +00:00
Bill Yi 8c992e3b4f Import translations. DO NOT MERGE
Change-Id: I6939381d081f809324360287994fd424dd533f66
Auto-generated-cl: translation import
2017-01-30 22:03:45 -08:00
Hyunyoung Song ea383c312c Changes required to use MaskableIconDrawable inside Launcher3
This CL will bake the legacy icons inside a grey background

Note: There will be follow up CL to change the color and shadow of the
legacy icon. The idea of this CL is to first test if MaskableIconDrawable
methods and class work properly.

Bug: 32063838
Bug: 33553066

Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
2017-01-30 12:18:08 -08:00
Tony Wickham f79877c04c Ensure notification icons have enough contrast with background.
This uses the same color calculations as the system, except that
we use the extracted notification background instead of assuming
it is white.

Bug: 32410600
Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
2017-01-27 12:43:31 -08:00
Tony Wickham 9438ed414f Add swipe-to-dismiss notifications in popup menu.
- Next secondary icon animates up to replace dismissed main notification
- Add padding around main notification so it always aligns with the
  straight edges of the view (not the rounded corners); looks more
  dismissable
- Notification view collapses as notifications are dismissed
- To mimic system notification behavior, we copy SwipeHelper,
  FlingAnimationUtils, and Interpolators. We also apply elevation
  to notifications and reveal a darker color beneath when dismissing.

Bug: 32410600
Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
2017-01-25 17:36:31 -08:00
Tony Wickham 540913eadf Refactor DeepShortcutsContainer to PopupContainerWithArrow
- Also added PopupItemView, which takes animation logic from
  DeepShortcutView, and which DeepShortcutView now extends.
- Renamed ShortcutFilter to PopupPopulator, which has support
  for new item types (not yet used). Also moved populating
  logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator.

Bug: 32410600
Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
2017-01-25 11:21:47 -08:00
Fan Zhang a14281cacf Fix color for widget tray to match Default.Settings theme
Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307
Fix: 34672511
Test: visual
2017-01-24 15:55:55 -08:00
TreeHugger Robot c711e6006f Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-01-21 01:18:03 +00:00
Sunny Goyal 65513ba58c Using WidgetCell in the Pin Item confirmation prompt for a consistent UI
Also fixing some platform API changes in PinItemRequestCompat

Bug: 33584624
Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
2017-01-20 15:44:15 -08:00
Bill Yi a6c4034543 Import translations. DO NOT MERGE
Change-Id: I4be6c1c59d520117f5471af788140d48ca214a31
Auto-generated-cl: translation import
2017-01-20 13:51:01 -08:00
Sunny Goyal a2441e88ff Updating widget preview generation to not embed any badge.
Instead drawing badge in the view directly.

This will allow us to reuse the same preview when we do not want to draw
badges. This also simplified badging of shortcut config activities.

Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
2017-01-19 14:00:40 -08:00
Sunny Goyal 278359539c Adding support for requesting addition of shortcut/widget
on the workspace.

Bug: 33584624
Change-Id: I664366822fe8088742faff2cce006239ab0771bc
2017-01-18 18:38:34 -08:00
Tony Wickham 197f97bde4 Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ub-launcher3-master 2017-01-18 22:36:17 +00:00
Mario Bertschler 8e98cb876f Fixes a bug where in Android O the all apps search icon appears
on screen rotation.

The fix is by applying a "different" transparent (transparent
white instead of transparent black) for the hint color in focus
state. The root problem lies in DynamicDrawableSpan and restoring
state in EditText if hint color is #000000.

Bug: b/34259116
Change-Id: Id3c46b2af4d5cdb18c0510504f2fe66dece7056f
2017-01-17 15:04:37 -08:00
Tony Wickham 9a8d11f930 FastBitmapDrawable can draw an icon badge (notification count)
- Added BadgeInfo to contain data to be shown in a badge
  (currently just notification count).
- Added BadgeRenderer in DeviceProfile to contain things
  relevant to drawing the badge, such as size and Paint's.
- Added IconPalette to compute colors for the badge based
  on a dominant color (will also be used for notifications)
- FastBitmapDrawable uses these classes to draw the badge.

Bug: 32410600
Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
2017-01-13 10:58:10 -08:00
Mario Bertschler cd0f679030 This enables to slide up All Apps from anywhere in the workspace,
not only over the hotseat.

The tricky part handling with scrollable widgets is solved by
setting requestDisallowInterceptTouchEvent from within the
widget view host (and resetting it upon performing long click).

Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
2017-01-09 14:42:52 -08:00
Sunny Goyal a32bf9b181 Removing logic around replacing icon during restore
This logic was dependent on key-value based backup. Since we are
using full-backup, the appropriate flags are never set.

Bug: 18764649
Change-Id: I95a93eee63ac9c82acfb66abfdd1a5407974df46
2017-01-05 14:07:58 -08:00
Sunny Goyal f5440cbd6c Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic
Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
2016-12-15 08:05:09 -08:00
Hyunyoung Song 824c540f19 Merge "nav bar on all apps container should use light theme. b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2" into ub-launcher3-master 2016-12-12 22:51:06 +00:00
Hyunyoung Song df9f14746c nav bar on all apps container should use light theme.
b/33553066
Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2
2016-12-12 14:34:10 -08:00
Sunny Goyal 776ca257ce Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" into ub-launcher3-master 2016-12-12 20:45:17 +00:00
Sunny Goyal 55cb70bf70 Adding an overridable DrawableFactory to allow creating custom icon drawables
> Adding ItemInfo as a parameter for creating drawable

Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
2016-12-07 15:55:47 -08:00
Sunny Goyal c13403c612 Defining various modes for CellLayout: Workspace, Hotseat & Folder
> Moving the definition of modes to xml
> Defining attributes in xml

Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
2016-11-21 15:20:16 +05:30
Jon Miranda 93e1f04fa9 Hide workspace text in multi-window mode.
* Vertically centers workspace icons.
* New iconDisplay value so shortcut text is not overriden.

Bug: 32176631

Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
2016-11-15 11:19:03 -08:00
Sunny Goyal f8d5370a9f Merge "Catching TransactionTooLargeException when binding widget." into ub-launcher3-master 2016-11-15 19:07:32 +00:00
Sunny Goyal 712ee53c67 Catching TransactionTooLargeException when binding widget.
A widget can potentially bypass binder size limit with remote views when
using partual updates (as the merging happens on the system service). In
such a case, show the widget in error state.

Bug: 32365088
Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
2016-11-09 12:43:11 -08:00
Jon Miranda 51f037d674 Refactor edge of screen detection code.
There were two resources that both defined the edge of the screen.

Change-Id: I82ab553cc3123ef54ff1f0c692d29f3678ad04ac
2016-11-07 10:11:49 -08:00
Jon Miranda bf7d8121ea Scale down folder cells to fit within bounds if necessary.
The number of folder cols/rows are set in InvariantDeviceProfile.
Because of this, we may need to scale down the folder cells in
multi-window mode.

Bug: 32176631
Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
2016-11-04 14:15:33 -07:00
Jon Miranda 068953bccc Match AllApps start and end paddings.
Padding was only on the end to account for the scrollbar. Adding
padding to the left allows the icons on AllApps to align with the icons
on the workspace.

Bug: 32640697
Change-Id: Iced9287979a11afda98bc6bfc926fe87182bee68
2016-11-03 16:20:15 -07:00
Jon Miranda c3e4e228b1 Remove unused code in DeviceProfile.
Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
2016-11-02 16:56:52 -07:00
Jon Miranda df3bc52ca9 Center overview panel buttons.
Bug: 32313927
Change-Id: Ib6e82b12ef45d2fe59e46b5b2dd8945047eeb981
2016-11-02 13:39:46 -07:00
Sunny Goyal 44ac576545 Updating the search illustrations to have transparent background
Bug: 32234314
Change-Id: If279e97acce6b7522ec587014afab8d48a2296dd
2016-10-20 11:45:59 +01:00
Sunny Goyal 645760793d Merge "Alienating QSB" into ub-launcher3-master 2016-10-18 20:57:46 +00:00
Sunny Goyal ed5d960ec1 Removing some bitmap drawables.
Loading the edge drawables only when legacy DND is enabled

Change-Id: I1c66d03146fb7fa7d61a4abf8c2e5a4289a117b9
2016-10-18 15:55:55 +01:00
Sunny Goyal 2e013ea7f6 Alienating QSB
> Moving all QSB widget handling code in a separate package
> QSB is handled on a separate host, independent of the main
host. This allows us to safely reset either of the two hosts
> Also removing the logic around closeSystemDialog:
   Launcher does not use any panels which need closing
   System sends an onActivityResult(RESULT_CANCELLED), we do
   not need special handling for waitingForResult
> Fixing bug when auto-generated qsb widget id was not being saved

Change-Id: I2d889b7b1c80b14785d14f35624142a4b78452de
2016-10-18 11:44:21 +01:00
Bill Yi 02662a1209 Import translations. DO NOT MERGE
Change-Id: I086069707cac0763e3d3704db8ba414c514b83d3
Auto-generated-cl: translation import
2016-10-13 16:57:53 -07:00
Sunny Goyal 2a65020da1 Removing the section break UI support
This was an exploration for an alternative UI in all apps, where we
show section headers before every section. This was never released.

Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
2016-10-13 09:39:36 -07:00
Sunny Goyal 3f0a53fa44 Making the width of the fast scroller popup as wrap_content
Adding minWidth and width=wrap_content, so that the popup can
grow for wider characters.

Change-Id: I6e0c4087df51e37f696c47f20f146f32d41e8bc8
2016-10-11 15:51:29 -07:00
Sunny Goyal f8fa9e4124 Merge "Simplifying fast scroller logic" into ub-launcher3-master 2016-10-11 22:09:48 +00:00
TreeHugger Robot fd8eaee27f Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-10-11 07:22:03 +00:00
Sunny Goyal 802f3255a7 Updating the folder cell dimensions to be closer to a square
am: 68f240eb54

Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023
2016-10-10 21:17:28 +00:00
Sunny Goyal 5d9fb0e92f Simplifying fast scroller logic
> Using a separate view for drawing the popup. This allows us to use elevation
  property instead of drawing the shadow as bitmap.
> During the thumb animation, invalidating the full track width, instead of
  invalidating the track and thumb separately.
> The thumb path is calculated at 0,0 and drawn using canvas.translate().
   This avoids recalculating the path on every scroll.

Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6
2016-10-10 14:17:16 -07:00
Sunny Goyal 631ffbda64 Merge "Refactoring floating view opening/closing logic" into ub-launcher3-master 2016-10-10 21:00:10 +00:00
Bill Yi b4e6379990 Import translations. DO NOT MERGE
Change-Id: I0f12c5e0414f45e751b726160759de71287b9686
Auto-generated-cl: translation import
2016-10-10 13:48:58 -07:00
Sunny Goyal 740ac7f00e Refactoring floating view opening/closing logic
> Creating a base view for floating panels with some common methods
> Moving the getOpen method to individual classes
> Moving the folder icon animation logic to folder icon
> Moving all the logic related for opening folder to Folder class

Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88
2016-10-10 13:36:03 -07:00
Sunny Goyal 08ca40f976 Refactoring AppWidgetResizeFrame
> Defining the layout in xml
> Simplifying the touch handling calculations

Change-Id: Iccfd82161d1e678d77ad6ff63f76e04ad905f9d8
2016-10-07 15:16:29 -07:00
Sunny Goyal 68f240eb54 Updating the folder cell dimensions to be closer to a square
Bug: 31813976
Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
2016-10-07 13:36:56 -07:00
Bill Yi 4f66ee5bd4 Import translations. DO NOT MERGE
Change-Id: I79312af8c821187e4e04c482e36a37b970f66109
Auto-generated-cl: translation import
2016-10-06 01:59:32 -07:00
Tony Wickham 10236d6ac7 Update pre-drag lifecycle for apps with shortcuts.
- First of all, deferred drag has been renamed to pre-drag
  to avoid confusion with the existing deferred end drag.
- For normal drags, the cycle is still startDrag -->
  onDragStart --> onDrop --> onDropComplete --> onDragEnd.
- Pre-drags have two additional callbacks: onPreDragStart
  and onPreDragEnd. onPreDragStart is called between
  startDrag and onDragStart, and onPreDragEnd is called
  at the same time as onDragStart or onDragEnd.
- If the pre-drag has not transitioned to a full drag before
  onDragEnd, onDragStart and onDropComplete are skipped
  (onDrop is still called to allow the DragView to animate).

Change-Id: Icd7a8f75d5fcc159f9a52758c22ab6eae3edb9e2
2016-10-04 12:26:35 -07:00
Sunny Goyal 7a372033ac Merge "Exposing custom actions using keyboard shortcut" into ub-launcher3-master 2016-10-03 21:12:20 +00:00
TreeHugger Robot f7f41bd4fa Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-29 07:31:07 +00:00
TreeHugger Robot 8c9aa3c15a Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-09-29 07:30:45 +00:00
Bill Yi 09146cade4 Import translations. DO NOT MERGE
Change-Id: Ie8f3d7887e173108cb485370443068a0a346134a
Auto-generated-cl: translation import
2016-09-28 21:51:45 -07:00
Bill Yi 2b7b76c018 Import translations. DO NOT MERGE
Change-Id: I654a22df571448ce858325439e0d73a0d0bbe623
Auto-generated-cl: translation import
2016-09-28 21:50:56 -07:00
Tony Wickham 32b838e652 Decrease drop target left and right padding.
am: e0dab19c71

Change-Id: If9c1fcaa99fb9e41eefa61895752f1a7558c29bf
2016-09-28 23:53:41 +00:00
Tony Wickham e0dab19c71 Decrease drop target left and right padding.
Otherwise it looks like we are aggressively truncating the
text even though there is plenty of room to show it.

Bug: 31790418
Change-Id: Ia1cdc232f05815732d4cb95b954e935724a200fd
2016-09-28 16:22:36 -07:00
Tony Wickham 0bc9e98d78 resolve merge conflicts of 9311387 to ub-launcher3-master
Change-Id: I449cd2c91c2906f04ebf844eab2d02befaeb2f4d
2016-09-28 14:40:28 -07:00
Tony Wickham 9311387a22 Enable light status bar when top of wallpaper is light.
(Light status bar = dark icons)

Bug: 29452834
Change-Id: I9f61a05d80158827761c8b62ab40fc50971e27a6
2016-09-28 14:16:11 -07:00