OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 years agoMerge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3...
TreeHugger Robot [Mon, 17 Apr 2017 17:21:34 +0000 (17:21 +0000)]
Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval

7 years agoUpdating getApplicationInfo to handle NameNotFoundException
Sunny Goyal [Mon, 17 Apr 2017 17:03:01 +0000 (10:03 -0700)]
Updating getApplicationInfo to handle NameNotFoundException

Bug: 37324177
Change-Id: If4caf7c61667fc874e7dbaff9f8c48b2c2cc107f

7 years agoMerge "Separating the DB upgrade into two paths: > schema update: changes in the...
TreeHugger Robot [Mon, 17 Apr 2017 16:42:34 +0000 (16:42 +0000)]
Merge "Separating the DB upgrade into two paths: > schema update: changes in the table schema > data update: backward compatible changes to the data" into ub-launcher3-dorval

7 years agoSeparating the DB upgrade into two paths:
Sunny Goyal [Thu, 13 Apr 2017 19:01:47 +0000 (12:01 -0700)]
Separating the DB upgrade into two paths:
> schema update: changes in the table schema
> data update: backward compatible changes to the data

Bug: 37257575
Change-Id: I856854ff2bffa2701f903a24fdc3baf6641175fd

7 years ago[DO NOT MERGE] legacy icon treatment / circle detection
Hyunyoung Song [Mon, 17 Apr 2017 04:32:20 +0000 (21:32 -0700)]
[DO NOT MERGE] legacy icon treatment / circle detection
Bug: 37357483

Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395

7 years agoFix popup item animation pivot
Tony Wickham [Tue, 11 Apr 2017 21:42:17 +0000 (14:42 -0700)]
Fix popup item animation pivot

Now it is based on the arrow center instead of height / 2
(this used to be the same when all items were separate)

Change-Id: I76c04344400c6d306e8404c1e93765adfbd0fe23

7 years agoMerge "Ensure system shortcut icons always appear in correct order" into ub-launcher3...
Tony Wickham [Fri, 14 Apr 2017 18:01:33 +0000 (18:01 +0000)]
Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval

7 years agoMerge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
Tony Wickham [Thu, 13 Apr 2017 22:55:57 +0000 (22:55 +0000)]
Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval

7 years agoEnsure system shortcut icons always appear in correct order
Tony Wickham [Thu, 13 Apr 2017 22:31:37 +0000 (15:31 -0700)]
Ensure system shortcut icons always appear in correct order

- Remove "|| true" that I accidentally left in from testing on a
  different CL
- Always reverse system shortcut icons that appear in the header of the
  ShortcutsItemView, so they are in priority order from right to left

Bug: 35766387
Change-Id: Ia7ac5a72eb2f6d3795e35bd044c426ef46fc0ccc

7 years agoUpdate widgets bottom sheet to match redlines
Tony Wickham [Wed, 12 Apr 2017 00:21:12 +0000 (17:21 -0700)]
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

7 years agoMerge "Updating gradle and build tools version" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 18:46:17 +0000 (18:46 +0000)]
Merge "Updating gradle and build tools version" into ub-launcher3-dorval

7 years agoUpdating gradle and build tools version
Sunny Goyal [Thu, 13 Apr 2017 18:24:54 +0000 (11:24 -0700)]
Updating gradle and build tools version

Change-Id: I269788d6d7798a5324a9170935c31a7c565cc214

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 13:52:06 +0000 (13:52 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 10:57:49 +0000 (03:57 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Add app info icon with no shadow for popup" into ub-launcher3-dorval
Tony Wickham [Wed, 12 Apr 2017 22:35:51 +0000 (22:35 +0000)]
Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval

7 years agoAdd app info icon with no shadow for popup
Tony Wickham [Tue, 11 Apr 2017 23:21:41 +0000 (16:21 -0700)]
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

7 years agoMerge "Remove reflection for a couple of methods" into ub-launcher3-dorval
TreeHugger Robot [Wed, 12 Apr 2017 00:35:01 +0000 (00:35 +0000)]
Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval

7 years agoUpdate popup to match redlines
Tony Wickham [Mon, 10 Apr 2017 21:05:34 +0000 (14:05 -0700)]
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

7 years agoRemove reflection for a couple of methods
Tony Wickham [Tue, 11 Apr 2017 23:39:58 +0000 (16:39 -0700)]
Remove reflection for a couple of methods

Bug: 36855196
Change-Id: I3e6b2901d1c12fffd0172e85df98e2e17e737168

7 years agoMerge "Disable notification listener on pre-26" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 23:19:51 +0000 (23:19 +0000)]
Merge "Disable notification listener on pre-26" into ub-launcher3-dorval

7 years agoDisable notification listener on pre-26
Tony Wickham [Mon, 10 Apr 2017 22:18:48 +0000 (15:18 -0700)]
Disable notification listener on pre-26

Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac

7 years agoMerge "Marking icon paths as non-translatable" into ub-launcher3-dorval
TreeHugger Robot [Mon, 10 Apr 2017 18:36:47 +0000 (18:36 +0000)]
Merge "Marking icon paths as non-translatable" into ub-launcher3-dorval

7 years agoMerge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 16:33:35 +0000 (16:33 +0000)]
Merge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval

7 years agoMarking icon paths as non-translatable
Sunny Goyal [Mon, 10 Apr 2017 15:27:28 +0000 (08:27 -0700)]
Marking icon paths as non-translatable

Change-Id: Ifbe6c5a7edbc3ea361ae4a8ee38f9cde681813dc

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 8 Apr 2017 05:20:58 +0000 (22:20 -0700)]
Import translations. DO NOT MERGE

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

7 years agoOnly create one bitmap to clip popup item corners
Tony Wickham [Fri, 7 Apr 2017 16:21:25 +0000 (09:21 -0700)]
Only create one bitmap to clip popup item corners

Previously we created a bitmap the size of the entire popup item and
drew a rounded rect in it to clip the corners. Now we create a bitmap
that is only the size of the rounded corner radius, and rotate and
translate it to all four corners to achieve the same clipping.

Besides the reduced memory of this approach, it also simplifies things
when we reduce the item's height (e.g. when the second to last
notification is dismissed), because we no longer have to recreate the
background bitmap to match the new size; the translation calculations
in dispatchDraw() automatically take the current size into account.

Bug: 35869307
Change-Id: I938bbc4bd87479580287426b4197516caf1a64d4

7 years agoMerge "Launcher dump proto that will be used for:" into ub-launcher3-dorval
Hyunyoung Song [Thu, 6 Apr 2017 22:42:10 +0000 (22:42 +0000)]
Merge "Launcher dump proto that will be used for:" into ub-launcher3-dorval

7 years ago[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 22:01:06 +0000 (15:01 -0700)]
[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: I28d460eee6de84cd74866223b92d43274d64d334

7 years agoShadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 20:15:13 +0000 (13:15 -0700)]
Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: Ic7363196aa493b4aa6a2dffa9c3e8f3399b1b3f3

7 years agoMerge "Add support for getting widgets/shortucts for a particular package/user" into...
Tony Wickham [Wed, 5 Apr 2017 19:54:40 +0000 (19:54 +0000)]
Merge "Add support for getting widgets/shortucts for a particular package/user" into ub-launcher3-dorval