Commit Graph

16224 Commits

Author SHA1 Message Date
Tony 52c656d77c Merge branch 'ub-launcher3-dorval' into launcher3merge
am: 7e0801eafb

Change-Id: I3c5bf0a79aca97e7385ec6d066d1f93069ccfea5
2017-06-09 19:41:42 +00:00
Tony 7e0801eafb Merge branch 'ub-launcher3-dorval' into launcher3merge
Test: testing done on ub-launcher3-dorval branch
Change-Id: I3e5167b7e1944ca259747caa8fd56a0507742dfc

issue 62484015
2017-06-09 17:04:05 +00:00
Tony Wickham 7092db0241 Add support for color extracted notification dots
Changing the badge_color in colors.xml to transparent
will cause them to be color extracted.

When an extracted color is used in the IconPalette, we
desaturate the background. Otherwise we respect the
exact color specified in colors.xml.

Change-Id: Ie82d0c5335fa5f24d4cc47766e4c1719c4916f8b
2017-06-08 21:08:47 +00:00
Tony Wickham 85b64c7da0 Updating icon badging string to "Notification dots"
Change-Id: Ie3193c8aae8fee5860274ba6823b0cdfe25b1083
2017-06-08 19:18:31 +00:00
TreeHugger Robot 88082394eb Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables b/62372639" into ub-launcher3-dorval 2017-06-06 21:13:16 +00:00
Hyunyoung Song 9279496e54 Prevent clipping on the top and left side on AdaptiveIconDrawables
b/62372639

Change-Id: I0b2c0daecba2904f3e89f7b0b558d9b10f5dcbf6
2017-06-06 13:21:11 -07:00
TreeHugger Robot ce338fca12 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-06-03 20:04:14 +00:00
Tony 629a67c5ac Migrate ColorExtractionService to JobService
IntentService cannot be run in the background, so moving to
JobService prevents us from crashing if the wallpaper is
changed while we aren't running.

Bug: 62065291
Change-Id: Ie0c887e36d0ced43a0b9ab8136bf55eb37697489
2017-06-02 18:21:05 -07:00
Bill Yi 303b81010a Import translations. DO NOT MERGE
Change-Id: Iaccfb365895d66930405f7114613bcbadbca1c25
Auto-generated-cl: translation import
2017-06-02 18:15:04 -07:00
Hyunyoung Song 6958fda4ad merged ub-launcher3-dorval, and resolved conflicts Test: $ make -j 32 dist checkbuild Bug: 62196967
am: 69a49c1d24

Change-Id: If92f66a9eb40356e671c985a324f75d36cf0ae15
2017-05-31 21:30:46 +00:00
Hyunyoung Song 69a49c1d24 merged ub-launcher3-dorval, and resolved conflicts
Test: $ make -j 32 dist checkbuild
Bug: 62196967

Change-Id: Ibdcdde25cb117574549404348105d49348e79bea
2017-05-31 11:48:47 -07:00
Bill Yi 8b6ea60fac Import translations. DO NOT MERGE
Change-Id: I2b9ae2bbd37711412de29f0c0f48d7317398f853
Auto-generated-cl: translation import
2017-05-30 15:43:56 -07:00
Sunny Goyal 1f5a264fac [DO NOT MERGE] Making various icon shape options as non-translatable
Change-Id: I2abe2c84a7c6a2b9cad8b3238ba6ee8a5761f70e
2017-05-25 09:46:17 -07:00
Bill Yi b64355fe05 Import translations. DO NOT MERGE
Change-Id: I7f53533487bce703a8fa6e45c1a8650057e108f2
Auto-generated-cl: translation import
2017-05-23 13:12:13 -07:00
Mario Bertschler fc2b3d2b8a Minor accessibility change for app discovery item
Bug: 38345854

Change-Id: Ib200b5a6295eb26650c7f28d0b7823b489c70cda
2017-05-22 09:21:01 -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 440052ce5d Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval 2017-05-18 18:34:04 +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
Bill Yi 2a7c820dac Import translations. DO NOT MERGE
Change-Id: I0e20d48d0f6eaedfa6d93fc7ed0b355c34e92a98
Auto-generated-cl: translation import
2017-05-17 17:05:55 -07:00
TreeHugger Robot 904a38340c Merge "When building Launcher3 target, LauncherDumpProto class should not be proguarded b/36904684" into ub-launcher3-dorval 2017-05-17 21:01:18 +00:00
Hyunyoung Song 2d4d1c532d When building Launcher3 target, LauncherDumpProto class should not be proguarded
b/36904684

Change-Id: I0fd0e1c63d54d83db428a04067a37f582e4d23f1
2017-05-17 13:18:54 -07:00
Sunny Goyal 4869bf3f74 Removing workspaceLoaded check from loadDeepShortcuts()
loadDeepShortcuts() is called after loadWorkspace() which already
clears the shortcutMap. So if loader runs twice, during the second run,
workspaceLoaded is true, but the shortcutMap had already been cleared
in loadWorkspace().

Bug: 38384071
Change-Id: I40f0faf88376617e56819aef02620488e528dfb2
2017-05-17 12:07:39 -07: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 d315d07aee Merge "Add setting to turn off icon badging" into ub-launcher3-dorval 2017-05-16 23:33:59 +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 8ffddbb7c2 Merge "Minor polishment on app discovery UI." into ub-launcher3-dorval 2017-05-16 20:08:08 +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 0287a44c81 Minor polishment on app discovery UI.
b/38341964
b/38342208
b/38341681

Change-Id: I8dfe4f5431cbfa96573c0461fddd410367c9ad13
2017-05-16 11:48:23 -07:00
TreeHugger Robot 441c628a75 Merge "Log whether an event happened during landscape mode or not b/38211234" into ub-launcher3-dorval 2017-05-16 18:43:30 +00:00
Hyunyoung Song d5a9b57713 Log whether an event happened during landscape mode or not
b/38211234

<sample log>
  action:TAP
  Source child:APP_ICON, packageHash=-1046965711, componentHash=-371608779, intentHash=208792422, grid(4,4), span(1,1), pageIdx=0	parent:WORKSPACE id=0
  Elapsed container 3071 ms session 3071 ms action 0 ms
  isInLandscapeMode true
  isInMultiWindowMode false
</sample log>

Change-Id: I44dfe4e7ee2a41c56a50cc2b507bbbeedc458018
2017-05-16 11:12:43 -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 Wickham 0270039b98 Accessibility fixes for moving items
- Don't open popup when using "move item" action
- Don't announce "Item moved" if dropping on original cell

Bug: 33501751
Change-Id: I7236cd51fc00c357a1d7597e2fcb68c3a7c16b0b
2017-05-11 15:20:28 -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
Hyunyoung Song 89e26d6cf4 merged ub-launcher3-dorval, and resolved conflicts Bug: 36904684 Bug: 37929893 Bug: 36068989
am: 93d0b87153  -s ours

Change-Id: I6749bff4ea4b8144a066a67902e19310d2bac30d
2017-05-11 14:51:56 +00:00
Hyunyoung Song 311ec8962b merged ub-launcher3-dorval, and resolved conflicts
Bug: 36904684
Bug: 37929893
Bug: 36068989

Test: make -j 32 dist checkbuild
Change-Id: If9b11b212852cb1048d54db2224dab4acf2d93e0
2017-05-10 16:52:47 -07:00
Hyunyoung Song 93d0b87153 merged ub-launcher3-dorval, and resolved conflicts
Bug: 36904684
Bug: 37929893
Bug: 36068989

Merged-In: I3da7113926cdcb933707b3864c4334223c11e25b
Merged-In: If9b11b212852cb1048d54db2224dab4acf2d93e0

Test: make -j 32 dist checkbuild

Change-Id: I7e12afdf66a892654a06b77f7fc625a93554d1e7
2017-05-10 14:16:30 -07:00
TreeHugger Robot 5cfde85cb6 Merge "Visual updates for popup" into ub-launcher3-dorval 2017-05-10 01:10:55 +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
Jon Miranda aa6f66aad2 Fix bug where deep shortcut drag view target was skewed to the right.
Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e
2017-05-09 13:00:49 -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 9a1227105a Updating the setAsyncExecutor call as per API changes
Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0
2017-05-08 08:56:28 -07:00
Bill Rassieur 833a3943ed Empty commit to trigger a build.
BUG: 38093737
2017-05-08 06:28:48 -07:00
Sunny Goyal 57266aa2bd Do not delete chost widgets when opening DB.
During restore, the data can be in inconsistant state, as the
system is yet to give us the widget map. Deleting the widget during
open would cause the AppWidgetRestoredReceiver to store the widget id
after it has been deleted.

Bug: 37935101
Bug: 38029633
Change-Id: Id3b8766229718239ae784794e848dcfbc74658ac
2017-05-05 10:55:21 -07:00
Hyunyoung Song 8dd56b7e44 Merge "Add meta data to indicate launcher_dump provider name" into ub-launcher3-dorval 2017-05-05 03:32:04 +00:00
Tony Wickham 23cae10576 Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval 2017-05-05 00:26:33 +00:00
Hyunyoung Song 37fa9b407b Add meta data to indicate launcher_dump provider name
b/36904684

Change-Id: I3e4bdae163dbe1ecfbd0a009462f13f25e2486d6
2017-05-04 17:20:20 -07:00
Tony Wickham 431a71320c Don't delete legacy shortcuts in loadWorkspace()
Legacy 1x1 shortcut intents have null package names.
This was causing an NPE when calling LauncherApps#getApplicationInfo(),
which caused those shortcuts to be removed from the workspace.

Bug: 37634887
Change-Id: I6d9876ee1634a573c1f0f94602ae373365cab01c
2017-05-04 17:08:30 -07:00
TreeHugger Robot b77aa69eee Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval 2017-05-04 23:02:21 +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