OSDN Git Service

android-x86/packages-apps-Launcher3.git
6 years agorelease-request-276f9f52-87fd-4915-bd79-9a2f0ee77433-for-git_oc-release-4090213 snap... multiwindow-oreo oreo-x86
android-build-team Robot [Sun, 11 Jun 2017 07:16:10 +0000 (07:16 +0000)]
release-request-276f9f52-87fd-4915-bd79-9a2f0ee77433-for-git_oc-release-4090213 snap-temp-L31600000073091223

Change-Id: I9888956d3dbb66f8de012ef2e61395075ff4fa72

6 years agoMerge branch 'ub-launcher3-dorval' into launcher3merge
Tony [Fri, 9 Jun 2017 03:53:08 +0000 (20:53 -0700)]
Merge branch 'ub-launcher3-dorval' into launcher3merge

Test: testing done on ub-launcher3-dorval branch
Change-Id: I3e5167b7e1944ca259747caa8fd56a0507742dfc

issue 62484015

6 years agoAdd support for color extracted notification dots
Tony Wickham [Wed, 7 Jun 2017 21:32:23 +0000 (14:32 -0700)]
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

6 years agoUpdating icon badging string to "Notification dots"
Tony Wickham [Thu, 8 Jun 2017 19:12:17 +0000 (12:12 -0700)]
Updating icon badging string to "Notification dots"

Change-Id: Ie3193c8aae8fee5860274ba6823b0cdfe25b1083

6 years agoMerge "Prevent clipping on the top and left side on AdaptiveIconDrawables b/62372639...
TreeHugger Robot [Tue, 6 Jun 2017 21:13:13 +0000 (21:13 +0000)]
Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables b/62372639" into ub-launcher3-dorval

6 years agoPrevent clipping on the top and left side on AdaptiveIconDrawables
Hyunyoung Song [Tue, 6 Jun 2017 19:12:22 +0000 (12:12 -0700)]
Prevent clipping on the top and left side on AdaptiveIconDrawables
b/62372639

Change-Id: I0b2c0daecba2904f3e89f7b0b558d9b10f5dcbf6

6 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Sat, 3 Jun 2017 20:04:11 +0000 (20:04 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

6 years agoMigrate ColorExtractionService to JobService
Tony [Fri, 2 Jun 2017 22:43:26 +0000 (15:43 -0700)]
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

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 3 Jun 2017 01:15:04 +0000 (18:15 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iaccfb365895d66930405f7114613bcbadbca1c25
Auto-generated-cl: translation import

6 years agorelease-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap...
android-build-team Robot [Thu, 1 Jun 2017 07:14:17 +0000 (07:14 +0000)]
release-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap-temp-L93200000069424216

Change-Id: Iabc0b3ab1ac68a38aac4f63c082a1119f272fb60

6 years agomerged ub-launcher3-dorval, and resolved conflicts
Hyunyoung Song [Wed, 31 May 2017 18:46:06 +0000 (11:46 -0700)]
merged ub-launcher3-dorval, and resolved conflicts
Test: $ make -j 32 dist checkbuild
Bug: 62196967

Change-Id: Ibdcdde25cb117574549404348105d49348e79bea

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 30 May 2017 22:43:56 +0000 (15:43 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2b9ae2bbd37711412de29f0c0f48d7317398f853
Auto-generated-cl: translation import

6 years ago[DO NOT MERGE] Making various icon shape options as non-translatable
Sunny Goyal [Thu, 25 May 2017 16:41:10 +0000 (09:41 -0700)]
[DO NOT MERGE] Making various icon shape options as non-translatable

Change-Id: I2abe2c84a7c6a2b9cad8b3238ba6ee8a5761f70e

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 23 May 2017 20:12:13 +0000 (13:12 -0700)]
Import translations. DO NOT MERGE

Change-Id: I7f53533487bce703a8fa6e45c1a8650057e108f2
Auto-generated-cl: translation import

6 years agoMinor accessibility change for app discovery item
Mario Bertschler [Mon, 22 May 2017 16:20:14 +0000 (09:20 -0700)]
Minor accessibility change for app discovery item

Bug: 38345854

Change-Id: Ib200b5a6295eb26650c7f28d0b7823b489c70cda

6 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Thu, 18 May 2017 18:40:36 +0000 (18:40 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

6 years agoMerge "Make expanded system shortcuts clickable" into ub-launcher3-dorval
TreeHugger Robot [Thu, 18 May 2017 18:34:01 +0000 (18:34 +0000)]
Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval

6 years agoMake expanded system shortcuts clickable
Tony Wickham [Thu, 18 May 2017 00:26:10 +0000 (17:26 -0700)]
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

6 years agoMerge "Update accessibility for popup" into ub-launcher3-dorval
Tony Wickham [Thu, 18 May 2017 01:06:43 +0000 (01:06 +0000)]
Merge "Update accessibility for popup" into ub-launcher3-dorval

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 May 2017 00:05:55 +0000 (17:05 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0e20d48d0f6eaedfa6d93fc7ed0b355c34e92a98
Auto-generated-cl: translation import

6 years agoMerge "When building Launcher3 target, LauncherDumpProto class should not be proguard...
TreeHugger Robot [Wed, 17 May 2017 21:01:15 +0000 (21:01 +0000)]
Merge "When building Launcher3 target, LauncherDumpProto class should not be proguarded b/36904684" into ub-launcher3-dorval

6 years agoWhen building Launcher3 target, LauncherDumpProto class should not be proguarded
Hyunyoung Song [Wed, 17 May 2017 20:18:54 +0000 (13:18 -0700)]
When building Launcher3 target, LauncherDumpProto class should not be proguarded
b/36904684

Change-Id: I0fd0e1c63d54d83db428a04067a37f582e4d23f1

6 years agoRemoving workspaceLoaded check from loadDeepShortcuts()
Sunny Goyal [Wed, 17 May 2017 19:05:46 +0000 (12:05 -0700)]
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

6 years agoMerge "Use a single color for all icon badges." into ub-launcher3-dorval
Tony Wickham [Tue, 16 May 2017 23:34:47 +0000 (23:34 +0000)]
Merge "Use a single color for all icon badges." into ub-launcher3-dorval

6 years agoMerge "Add setting to turn off icon badging" into ub-launcher3-dorval
Tony Wickham [Tue, 16 May 2017 23:33:54 +0000 (23:33 +0000)]
Merge "Add setting to turn off icon badging" into ub-launcher3-dorval

6 years agoAdd setting to turn off icon badging
Tony Wickham [Fri, 12 May 2017 21:59:09 +0000 (14:59 -0700)]
Add setting to turn off icon badging

Redirects to system Notifications setting page.

Bug: 36815147
Change-Id: I5ee542f94ed51a73a57df3a726384944ff3ee71d

6 years agoMerge "Minor polishment on app discovery UI." into ub-launcher3-dorval
Mario Bertschler [Tue, 16 May 2017 20:08:05 +0000 (20:08 +0000)]
Merge "Minor polishment on app discovery UI." into ub-launcher3-dorval

6 years agoUse a single color for all icon badges.
Tony Wickham [Tue, 16 May 2017 19:07:38 +0000 (12:07 -0700)]
Use a single color for all icon badges.

Bug: 38346375
Change-Id: I26b7ad3dcfea6a18e169d656e19605c9794eadd3

6 years agoMinor polishment on app discovery UI.
Mario Bertschler [Tue, 16 May 2017 18:44:17 +0000 (11:44 -0700)]
Minor polishment on app discovery UI.

b/38341964
b/38342208
b/38341681

Change-Id: I8dfe4f5431cbfa96573c0461fddd410367c9ad13

6 years agoMerge "Log whether an event happened during landscape mode or not b/38211234" into...
TreeHugger Robot [Tue, 16 May 2017 18:43:24 +0000 (18:43 +0000)]
Merge "Log whether an event happened during landscape mode or not b/38211234" into ub-launcher3-dorval

6 years agoLog whether an event happened during landscape mode or not
Hyunyoung Song [Tue, 16 May 2017 18:04:26 +0000 (11:04 -0700)]
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

6 years agoUpdating the icon shape override options
Sunny Goyal [Mon, 15 May 2017 19:15:57 +0000 (12:15 -0700)]
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

6 years agoAccessibility fixes for moving items
Tony Wickham [Thu, 11 May 2017 22:20:28 +0000 (15:20 -0700)]
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

6 years agoUpdate accessibility for popup
Tony [Thu, 11 May 2017 02:23:57 +0000 (21:23 -0500)]
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

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 11 May 2017 07:09:47 +0000 (00:09 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerged ub-launcher3-dorval, and resolved conflicts
Hyunyoung Song [Fri, 5 May 2017 06:05:21 +0000 (23:05 -0700)]
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

6 years agoMerge "Visual updates for popup" into ub-launcher3-dorval
TreeHugger Robot [Wed, 10 May 2017 01:10:52 +0000 (01:10 +0000)]
Merge "Visual updates for popup" into ub-launcher3-dorval

6 years agoVisual updates for popup
Tony [Wed, 10 May 2017 00:23:47 +0000 (19:23 -0500)]
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

6 years agoFix bug where deep shortcut drag view target was skewed to the right.
Jon Miranda [Tue, 9 May 2017 19:43:44 +0000 (12:43 -0700)]
Fix bug where deep shortcut drag view target was skewed to the right.

Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 9 May 2017 09:34:17 +0000 (02:34 -0700)]
Import translations. DO NOT MERGE

Change-Id: I08a7f35261493f7a1591ab1207ae7758816e13e3
Auto-generated-cl: translation import

6 years agoUpdating the setAsyncExecutor call as per API changes
Sunny Goyal [Mon, 8 May 2017 15:55:42 +0000 (08:55 -0700)]
Updating the setAsyncExecutor call as per API changes

Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0

6 years agoEmpty commit to trigger a build.
Bill Rassieur [Mon, 8 May 2017 13:28:48 +0000 (06:28 -0700)]
Empty commit to trigger a build.

BUG: 38093737

6 years agoDo not delete chost widgets when opening DB.
Sunny Goyal [Fri, 5 May 2017 17:52:40 +0000 (10:52 -0700)]
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

6 years agoMerge "Add meta data to indicate launcher_dump provider name" into ub-launcher3-dorval
Hyunyoung Song [Fri, 5 May 2017 03:32:02 +0000 (03:32 +0000)]
Merge "Add meta data to indicate launcher_dump provider name" into ub-launcher3-dorval

6 years agoMerge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval
Tony Wickham [Fri, 5 May 2017 00:26:31 +0000 (00:26 +0000)]
Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval

6 years agoAdd meta data to indicate launcher_dump provider name
Hyunyoung Song [Thu, 4 May 2017 22:21:20 +0000 (15:21 -0700)]
Add meta data to indicate launcher_dump provider name

b/36904684

Change-Id: I3e4bdae163dbe1ecfbd0a009462f13f25e2486d6

6 years agoDon't delete legacy shortcuts in loadWorkspace()
Tony Wickham [Thu, 4 May 2017 22:39:43 +0000 (15:39 -0700)]
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

6 years agoMerge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval
TreeHugger Robot [Thu, 4 May 2017 23:02:19 +0000 (23:02 +0000)]
Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval

6 years agoFix center-align issue in widgets bottom sheet
Tony [Wed, 3 May 2017 04:56:27 +0000 (21:56 -0700)]
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

6 years agoStart settings activity in a new task, so that if the LauncherActivity
Sunny Goyal [Thu, 4 May 2017 18:23:29 +0000 (11:23 -0700)]
Start settings activity in a new task, so that if the LauncherActivity
finishes from behind, the task does not enter an inconsistant state

Bug: 37921974
Change-Id: I5f943ae89ce1099d3b9cf6a4902c7fd077beb764

6 years agoGuard aginast O for checking AdaptiveIconDrawable
Hyunyoung Song [Wed, 3 May 2017 22:39:26 +0000 (15:39 -0700)]
Guard aginast O for checking AdaptiveIconDrawable
b/37952598

Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9

6 years agoMerge "Initializing the Add To Homescreen setting by reading it from market app"...
TreeHugger Robot [Wed, 3 May 2017 18:41:04 +0000 (18:41 +0000)]
Merge "Initializing the Add To Homescreen setting by reading it from market app" into ub-launcher3-dorval

6 years agoInitializing the Add To Homescreen setting by reading it from market app
Sunny Goyal [Mon, 10 Apr 2017 17:49:01 +0000 (10:49 -0700)]
Initializing the Add To Homescreen setting by reading it from market app

> Also enabling add to home-to-homescreen feature based on install reason

Bug: 36588249
Change-Id: Icfc1edd4c31ed7eb50086f8ffb1a7858a9641b41

6 years agoMerge "Use source bounds/activity options for App Info System Shortcut" into ub-launc...
Tony Wickham [Wed, 3 May 2017 18:20:39 +0000 (18:20 +0000)]
Merge "Use source bounds/activity options for App Info System Shortcut" into ub-launcher3-dorval

6 years agoUse source bounds/activity options for App Info System Shortcut
Tony [Wed, 3 May 2017 04:32:27 +0000 (21:32 -0700)]
Use source bounds/activity options for App Info System Shortcut

Bug: 37923215
Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f

6 years agoMerge "Uninstalling app from recent apps shelf should not leave a hole." into ub...
Hyunyoung Song [Wed, 3 May 2017 00:04:08 +0000 (00:04 +0000)]
Merge "Uninstalling app from recent apps shelf should not leave a hole." into ub-launcher3-dorval

6 years agoUninstalling app from recent apps shelf should not leave a hole.
Hyunyoung Song [Tue, 2 May 2017 23:06:28 +0000 (16:06 -0700)]
Uninstalling app from recent apps shelf should not leave a hole.

Bug: 37751234
Change-Id: Ie36d2ab1a24523e5061582dbc0ee347444da8a78

6 years agoMerge "Relax notification filter for badges" into ub-launcher3-dorval
Tony Wickham [Tue, 2 May 2017 21:19:12 +0000 (21:19 +0000)]
Merge "Relax notification filter for badges" into ub-launcher3-dorval

6 years agoMerge "Handle back-to-back height reduction animations" into ub-launcher3-dorval
Tony Wickham [Tue, 2 May 2017 21:09:25 +0000 (21:09 +0000)]
Merge "Handle back-to-back height reduction animations" into ub-launcher3-dorval

6 years agoMerge "Close Folder when opening WidgetsBottomSheet" into ub-launcher3-dorval
Tony Wickham [Tue, 2 May 2017 21:05:05 +0000 (21:05 +0000)]
Merge "Close Folder when opening WidgetsBottomSheet" into ub-launcher3-dorval

6 years agoRelax notification filter for badges
Tony Wickham [Tue, 2 May 2017 18:16:26 +0000 (11:16 -0700)]
Relax notification filter for badges

- Allow notifications with only title or text, not both (centered in popup)
- Allow notifications without an intent (don't add onClickListener)

Change-Id: I33d9bdbe0d27347d703b6fb81eda64ebdc7429d5

6 years agoClose Folder when opening WidgetsBottomSheet
Tony Wickham [Mon, 1 May 2017 15:44:35 +0000 (08:44 -0700)]
Close Folder when opening WidgetsBottomSheet

Dragging a shortcut from the bottom sheet to the open folder crashes.

Bug: 37810233
Change-Id: I82c953dd67528f9f1bc5a678650e87215af347a2

6 years agoFix bug where system shortcuts text size is set to 0 in MW mode.
Jon Miranda [Tue, 2 May 2017 19:49:33 +0000 (12:49 -0700)]
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

6 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Tue, 2 May 2017 13:45:06 +0000 (13:45 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

6 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Tue, 2 May 2017 10:36:29 +0000 (03:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: I06d773eb648c315dd683fdc353be5a3f34e91f2e
Auto-generated-cl: translation import

6 years agoMerge "Remove background scrim when there are no top insets." into ub-launcher3-dorval
TreeHugger Robot [Mon, 1 May 2017 22:33:13 +0000 (22:33 +0000)]
Merge "Remove background scrim when there are no top insets." into ub-launcher3-dorval

6 years agoRemove background scrim when there are no top insets.
Jon Miranda [Wed, 26 Apr 2017 17:47:37 +0000 (10:47 -0700)]
Remove background scrim when there are no top insets.

ie. In portrait multiwindow mode, the launcher is always on the
bottom so we can remove the background scrim that is meant to
protect the status bar contents.

Bug: 36397512
Change-Id: Ie9655b0604b5bebafdfb4153b370bb655129051c

6 years agoMerge "When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable...
TreeHugger Robot [Fri, 28 Apr 2017 07:28:13 +0000 (07:28 +0000)]
Merge "When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable b/37670867" into ub-launcher3-dorval

6 years agoHandle back-to-back height reduction animations
Tony Wickham [Tue, 18 Apr 2017 18:05:37 +0000 (11:05 -0700)]
Handle back-to-back height reduction animations

We reduce the height of the notification item when the second to last
notification is dismissed (to remove the unused footer) and when the
last notification is removed (to remove the unused notification item).
If the former is runninng when the latter starts, the end result is
janky because we weren't properly cleaning up the first animation when
the second began. We now cancel the existing animation before starting
the second.

Bug: 36172954
Change-Id: I742c15b6f59874bc675b4c20a83e9578ac5e5387

6 years agoWhen creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
Hyunyoung Song [Tue, 25 Apr 2017 18:20:05 +0000 (11:20 -0700)]
When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
b/37670867

Change-Id: I60884c52e7eb4b2d6f0ae2a5dc8e7c730f1f2454

6 years agoRe-enable badges, with all dots
Tony Wickham [Thu, 27 Apr 2017 19:07:34 +0000 (12:07 -0700)]
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

6 years agoRemove notification listener to disable badging
Tony Wickham [Thu, 27 Apr 2017 19:55:27 +0000 (12:55 -0700)]
Remove notification listener to disable badging

Bug: 37748653
Change-Id: I80d9f7c5274604f552113c7be0319d5cd454b29c

6 years agoMerge "Only apply legacy treatment on app icons that is targeting O" into ub-launcher...
Hyunyoung Song [Thu, 27 Apr 2017 04:03:40 +0000 (04:03 +0000)]
Merge "Only apply legacy treatment on app icons that is targeting O" into ub-launcher3-dorval

6 years agoSupport notifications with 0 count (show as dots)
Tony Wickham [Thu, 27 Apr 2017 01:13:56 +0000 (18:13 -0700)]
Support notifications with 0 count (show as dots)

- Show number if number > 0
- Show icon if number == 0 and a notification specified an icon to show
- Show a dot otherwise
- In cases of multiple notifications, stack a second badge behind the
  first (visuals will be updated in future CL, as well as support
  stacked dots)
- Folders always show dot if any app within has a badge.

Change-Id: I0a89059b0e0a0d174fe739c9da4f75fa18c0edfa

6 years agoOnly apply legacy treatment on app icons that is targeting O
Hyunyoung Song [Wed, 26 Apr 2017 20:42:12 +0000 (13:42 -0700)]
Only apply legacy treatment on app icons that is targeting O

For shortcuts, always apply legacy treatment.

b/37357483

Change-Id: I45f373ee0bb9436bc5029c88855ecb80b93fe277

6 years agoMerge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval
Jonathan Miranda [Wed, 26 Apr 2017 17:53:25 +0000 (17:53 +0000)]
Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval

6 years agoMerge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval
TreeHugger Robot [Wed, 26 Apr 2017 15:56:18 +0000 (15:56 +0000)]
Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval

6 years agoMove update popup header out of BubbleTextView
Tony Wickham [Tue, 25 Apr 2017 19:46:04 +0000 (12:46 -0700)]
Move update popup header out of BubbleTextView

Now we update from Launcher, which is both more efficient (only run it
when badges update, not whenever BubbleTextView applies an ItemInfo) and
more logical/cleaner.

Change-Id: Ib77433d9489c29e9781b3a48de37de0e07b5ba07

6 years agoMerge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval
TreeHugger Robot [Wed, 26 Apr 2017 15:46:21 +0000 (15:46 +0000)]
Merge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval

6 years agoSet the alpha to 1 when overview button is focused.
Jon Miranda [Tue, 25 Apr 2017 21:31:39 +0000 (14:31 -0700)]
Set the alpha to 1 when overview button is focused.

Bug: 37569953
Change-Id: I5c2acde3b5b443fe21e869d52bb9d2f8d98a914d

6 years agoFix updateIconBadges() in All Apps
Tony Wickham [Tue, 25 Apr 2017 21:13:20 +0000 (14:13 -0700)]
Fix updateIconBadges() in All Apps

Instead of notifyItemChanged(), we iterate over children of the
RecyclerView itself and call applyBadgeState() on affected icons.
This is the same logic we do for the workspace.

Issues this fixes:
- Icons flash when dismissing notifications
- Badge reappears on the icon while popup is open

Change-Id: I5c69d5c6bd47630c0241666b5f7f6f7ca97118f9

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Apr 2017 12:48:55 +0000 (05:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9c3d417862f2ae0c30ed1ee9245d00b04a2624ad
Auto-generated-cl: translation import

6 years agoMerge "Update icon badges to match spec" into ub-launcher3-dorval
TreeHugger Robot [Tue, 25 Apr 2017 20:02:37 +0000 (20:02 +0000)]
Merge "Update icon badges to match spec" into ub-launcher3-dorval

6 years agoUpdate icon badges to match spec
Tony Wickham [Fri, 24 Feb 2017 16:59:36 +0000 (08:59 -0800)]
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

6 years agoMerge "make sure all type of Item in DumpTarget contains component and package name...
Hyunyoung Song [Tue, 25 Apr 2017 03:48:53 +0000 (03:48 +0000)]
Merge "make sure all type of Item in DumpTarget contains component and package name b/36904684" into ub-launcher3-dorval

6 years agomake sure all type of Item in DumpTarget contains component and package name
Hyunyoung Song [Mon, 24 Apr 2017 20:01:47 +0000 (13:01 -0700)]
make sure all type of Item in DumpTarget contains component and package name
b/36904684

Change-Id: I3c71726a376fd1923e193cafe3b5a9b85a48c895

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 21 Apr 2017 03:41:42 +0000 (20:41 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2ae8231a21881c4546bf042778f6e29940ca91d8
Auto-generated-cl: translation import

6 years agoMerge "Only add widgets system shortcut if widgets exist" into ub-launcher3-dorval
Tony Wickham [Thu, 20 Apr 2017 23:08:47 +0000 (23:08 +0000)]
Merge "Only add widgets system shortcut if widgets exist" into ub-launcher3-dorval

6 years agoMerge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval
Tony Wickham [Thu, 20 Apr 2017 22:13:20 +0000 (22:13 +0000)]
Merge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval

6 years agoOnly add widgets system shortcut if widgets exist
Tony Wickham [Thu, 13 Apr 2017 23:24:38 +0000 (16:24 -0700)]
Only add widgets system shortcut if widgets exist

Before we were adding it in a disabled state, and then enabling it once
widgets were bound (if widgets existed for that app). Now we load all
widgets when launcher starts so that we can use the values for the
purpose of animating the popup container. Then, as the container opens,
we reload widgets/shortcuts for that particular app and add/remove the
widgets shortcut if necessary.

Bug: 34940468
Change-Id: I64bd009442d10d3d1f9a977bdedfdb639a7dd193

6 years agoMutate system shortcut icons in popup before tinting
Tony Wickham [Thu, 20 Apr 2017 21:19:24 +0000 (14:19 -0700)]
Mutate system shortcut icons in popup before tinting

Bug: 36865701
Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e

7 years agoMerge "Deleting any ghost widget from system service:" into ub-launcher3-dorval
TreeHugger Robot [Tue, 18 Apr 2017 22:11:09 +0000 (22:11 +0000)]
Merge "Deleting any ghost widget from system service:" into ub-launcher3-dorval

7 years agoFixing adaptive icon bounds caching
Sunny Goyal [Mon, 17 Apr 2017 23:43:05 +0000 (16:43 -0700)]
Fixing adaptive icon bounds caching

Change-Id: Ifa0ed4d600fcd2c50558ea9ae6e95f3364d4949a

7 years agoMerge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into...
TreeHugger Robot [Mon, 17 Apr 2017 23:35:38 +0000 (23:35 +0000)]
Merge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into ub-launcher3-dorval

7 years agoDeleting any ghost widget from system service:
Sunny Goyal [Thu, 6 Apr 2017 22:02:52 +0000 (15:02 -0700)]
Deleting any ghost widget from system service:

> A one-time DB update for removing any existing ghost widgets
> Handling widget cleanup when we bulk delete workspace items during loader
> Simplifying external delete

Bug: 35634653
Change-Id: Id0c520f57aee6d75d9c0e7bcd5786a464bf9f39f

7 years agoFixing icon left on the workspace when drag operation fails
Sunny Goyal [Mon, 17 Apr 2017 21:18:55 +0000 (14:18 -0700)]
Fixing icon left on the workspace when drag operation fails

Bug: 37294517
Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8

7 years agoRename WidgetsAndMore to WidgetsBottomSheet
Tony Wickham [Thu, 13 Apr 2017 01:31:09 +0000 (18:31 -0700)]
Rename WidgetsAndMore to WidgetsBottomSheet

(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd

7 years agoMerge "Fix popup item animation pivot" into ub-launcher3-dorval
TreeHugger Robot [Mon, 17 Apr 2017 18:43:42 +0000 (18:43 +0000)]
Merge "Fix popup item animation pivot" into ub-launcher3-dorval

7 years agoMerge "Slightly round corners of popup arrow" into ub-launcher3-dorval
Tony Wickham [Mon, 17 Apr 2017 18:30:12 +0000 (18:30 +0000)]
Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval

7 years agoSlightly round corners of popup arrow
Tony [Fri, 14 Apr 2017 18:03:10 +0000 (11:03 -0700)]
Slightly round corners of popup arrow

Bug: 35766387
Change-Id: I8d2be54c977074dbcf0d5884f44347edd0217bb5