Commit Graph

366 Commits

Author SHA1 Message Date
Sunny Goyal
623eddd7e8 Updating Launcher rotation logic
When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-03 00:41:09 -08:00
Sunny Goyal
c466b173d5 Adding a label for the notifiation service
Bug: 72314360
Change-Id: Ib7ae98015241cf6548dbb4d615cae514a4dde983
2018-03-01 16:10:37 -08:00
Tony Mak
9a026e7672 Update the user education text as the badge is no longer in orange
Change-Id: Ic13b86bed50356a1e01e01ad350e5f9882845b69
FIX: 73944227
2018-02-27 17:38:08 +00:00
Tony Wickham
305e920048 Add notification count to content description for badged apps
Bug: 70389249
Change-Id: If7f43941d501ba807adbb33d489da3944c012e94
2018-02-05 10:08:52 -06:00
Tony Mak
b5950bbd6c Update label accordingly when work mode is changed
Also, updates the work related strings accordingly.

Fix: 71987096

Change-Id: Iedbf6ee04f3a165a392efdf2bd351817997817ca
2018-01-16 21:33:56 +00:00
Tony Mak
2bfa4d469a Make work footer stick to the bottom if there are only a few apps #2
1. Move the work footer divider into the container, so it is translated
   with the rest of the footer.

2. Fixed the scrollbar issue in work tab by putting the footer height
   in AllAppsRecyclerView

3. We planned to drop the company name, and decided to use
   "Managed by your organisation".

4. Rename WorkModeToggleContainer to WorkFooterContainer as
   we are using work footer in else where.

BUG: 70571983
Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766
2017-12-15 11:40:07 +00:00
Tony Mak
191b688cc8 Bottom user education view shown in work tab
Introduced a BottomUserEducationView for similar use case.

Screenshot: https://hsv.googleplex.com/4856820942241792

BUG=69963630

Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
2017-12-04 17:36:33 -08:00
Tony Mak
6ffe4e0eee Add work profile footer in work tab
Screenshot(work mode is on): https://hsv.googleplex.com/6279751685636096
Screenshot (work mode is off): https://hsv.googleplex.com/6279751685636096

TODO:
It is just the UX bit, once the platform change is in, we should then
consume the new API to
1. Turn on / off work mode
2. Get the organization name and set the textview accordingly.

BUG=69905244

Change-Id: Id94ae57625d6b629dac89c1c28f8d65f395fff6c
2017-11-29 20:37:11 +00:00
Mario Bertschler
ac9408a5cd Enable work profile tab in all apps.
This CL will bring two tabs to all apps: Personal and Work,
currently only if the user has a workfile set up and
behind a feature flag defaulting to disabled.

Bug: 68713881

Change-Id: Ib5a558281ef3593359db3ad593ee1d0cf279f547
2017-11-14 10:28:54 -08:00
Mario Bertschler
f41edbe875 Install long-click action for apps that are not installed.
Bug: 65059282
Change-Id: Ifec3ac15c9cf52c456e695846eb91024b07fe333
2017-08-31 12:09:13 -07:00
Sunny Goyal
f5a09fe638 Fixing wrong title case for some strings
Bug: 63866253
Change-Id: Ied669948cb71bd89637394aa0c6f936b29e8936e
2017-07-20 11:32:46 -07:00
Sunny Goyal
848cad56ce Adding a warning button when notification access is not available
Bug: 63418030
Change-Id: I4c2c497d989902ac002314a3b8fb97083757958b
2017-07-10 11:10:35 -07:00
Tony Wickham
16c3e91949 Updating icon badging string to "Notification dots"
am: 85b64c7da0

Change-Id: Ibbdb9576502673ea1229c78a4d0027c4a50a18a8
2017-06-08 20:05:10 +00:00
Tony Wickham
85b64c7da0 Updating icon badging string to "Notification dots"
Change-Id: Ie3193c8aae8fee5860274ba6823b0cdfe25b1083
2017-06-08 19:18:31 +00:00
Sunny Goyal
9d9dbcb1b8 Revert "Revert "Fixing string not correctly marked as non-translatable""
This reverts commit 0ec2da54f8.

Change-Id: Id685c338ab5474e41cfd3792ef98b9cf4b0c4fba
2017-05-25 16:44:33 +00:00
Sunny Goyal
0ec2da54f8 Revert "Fixing string not correctly marked as non-translatable"
This reverts commit 477b8cc1b4.

Change-Id: I114f89c20d735d0e17cc93e8f78876bf8a388a6a
2017-05-25 16:42:18 +00:00
Sunny Goyal
477b8cc1b4 Fixing string not correctly marked as non-translatable
Bug: 38371442
Change-Id: I79a679d461e422dbb4e4832192ac40e6c2d509de
2017-05-25 09:08:49 -07:00
Tony Wickham
998dbecf53 Merge "Rename "Settings" to "Home settings"" into ub-launcher3-dorval-polish 2017-05-22 20:14:15 +00:00
Tony Wickham
cbe6c2849e Rename "Settings" to "Home settings"
Bug: 37903251
Change-Id: Ia6a8b329135100af9b54900e275c5362695bfd74
2017-05-19 19:33:26 -07:00
Tony Wickham
8af16760dc Merge "Update accessibility for popup" into ub-launcher3-dorval 2017-05-18 01:06:46 +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
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
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
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
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
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
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
6634869bad Updating some strings in add widget/shortcut flow
Bug: 36725328
Change-Id: I1006a48201fc5abb5c1f70c244c79a63f3195565
2017-03-30 12:31:06 -07: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
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
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
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
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
Sunny Goyal
66b24572e4 Exposing custom actions using keyboard shortcut
Keyboard shortcuts:
  ctrl+A => Open all apps
  ctrl+S => shows deep shortcuts
  ctrl+O => shows custom actions popup

This also removes the direct delete/uninstall key shortcuts, making
actidental icon removal less likely

Bug: 24065447
Change-Id: Iae63370c0f33620628567cffd4df024064d4d02e
2016-09-23 15:57:08 -07:00
Jon Miranda
6c61323998 Add context to widget dimensions for accessibility.
Bug: 19085860
Change-Id: Ia28c2c14b93945d796226eea3de040e971fd42f0
2016-09-19 11:25:39 -07:00
Sunny Goyal
a659bfe3d2 Updating content description for the shortcuts menu and announcing
it when the container is opened

Bug: 30587453
Change-Id: I6f2d3ba05593f3e2a1a8f05c66a0f80e76932c38
2016-08-02 16:16:16 -07:00
Sunny Goyal
70a7c9b700 Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
2016-07-28 12:22:51 -07:00
Sunny Goyal
3cdf466e2b Updating the label for shortcuts aciton
Bug: 30374655
Change-Id: I92d269aca8b9361356b1b2241b24fc9e17ad1074
2016-07-27 11:17:22 -07:00
Sunny Goyal
3ffa64df36 Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen

Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
2016-07-25 17:39:34 -07:00
Sunny Goyal
f420438a0b Updating the content description of disabled icons
Bug: 27644457
Change-Id: I03aec29e0ea6017b51dcd7567967a067e478cefd
2016-07-13 10:46:34 -07:00
Sunny Goyal
8dd3ce65d8 Merge "Updating page indicator content description to indicate click target for apps list" into ub-launcher3-calgary 2016-07-09 21:48:20 +00:00
Sunny Goyal
4dceebe0cf Updating the allow rotation settings text
Bug: 28704055
Change-Id: I7d4780f0d90b9c98b6c5126417538cf1b014c65b
2016-07-08 13:41:37 -07:00
Sunny Goyal
53fe1f26d3 Updating page indicator content description to indicate click target
for apps list

Bug: 29777235
Change-Id: Ia3dc20db7ec06455429389de5752b9bcfff15555
2016-07-08 08:49:34 -07:00
Andrew Sapperstein
b900f1cbaf Merge "Delete all* references to launcher clings." into ub-launcher3-calgary 2016-07-01 18:03:09 +00:00
Andrew Sapperstein
932eb8313c Delete all* references to launcher clings.
Launcher clings are dead. Delete all the code and resources associated with
them.

* Did not delete the actual code the marks the cling as dismissed since it's
used in db upgrade and backup/restore paths. Figured we probably want to keep
that.

Change-Id: I28841b4a430187b62b239afeb64bee81a798e259
Fixes: 29461092
2016-07-01 10:23:20 -07:00
Peter Schiller
310a988993 Updating all apps to match spec
Change-Id: Ie351fdea2e3b05ca911e6533f0c5d00c17e0847c
2016-06-30 18:09:51 -07:00
Sunny Goyal
653bfcc743 Merge "Accessibility fixes and updates" into ub-launcher3-calgary 2016-06-22 21:34:06 +00:00
Sunny Goyal
d0a6ae7f64 Accessibility fixes and updates
> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
2016-06-22 14:17:34 -07:00
Sunny Goyal
5b2de72e4c Updating some strings 'Tap & hold' > 'Touch & hold'
Bug: 29388170
Change-Id: Ida97ac8b49d0b365a5437ec4926d16c6486659eb
2016-06-22 12:04:50 -07:00