OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoEnsure getNotificationKeysForItem() returns empty on unsupported items.
Tony Wickham [Wed, 1 Feb 2017 17:58:40 +0000 (09:58 -0800)]
Ensure getNotificationKeysForItem() returns empty on unsupported items.

We were bypassing the check in getBadgeInfoForItem(), which meant
we would return notifications based on package/user regardless of
the item type. In particular, deep shortcuts would show notifications
when long-pressed.

Bug: 34866646
Change-Id: I6575a28539313c0c5d0eea1cbf7b7726f747bcd5

7 years agoMerge "Use notification icon views' tags to store NotificationInfo." into ub-launcher...
Tony Wickham [Tue, 31 Jan 2017 22:38:36 +0000 (22:38 +0000)]
Merge "Use notification icon views' tags to store NotificationInfo." into ub-launcher3-master

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-master
TreeHugger Robot [Tue, 31 Jan 2017 07:28:27 +0000 (07:28 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 06:03:45 +0000 (22:03 -0800)]
Import translations. DO NOT MERGE

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

7 years agoChanges required to use MaskableIconDrawable inside Launcher3
Hyunyoung Song [Wed, 18 Jan 2017 10:43:17 +0000 (02:43 -0800)]
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

7 years agoMerge "Ensure notification icons have enough contrast with background." into ub-launc...
Tony Wickham [Fri, 27 Jan 2017 23:34:19 +0000 (23:34 +0000)]
Merge "Ensure notification icons have enough contrast with background." into ub-launcher3-master

7 years agoUpdating the preview generation logic so that it aligns better with
Sunny Goyal [Thu, 26 Jan 2017 02:23:36 +0000 (18:23 -0800)]
Updating the preview generation logic so that it aligns better with
the drag source image

> Using common code for pending item drag (WidgetContainerView and PinItemDragListener)
> Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut
  directly. Previously the multi-window drop was routing through onActivityResult which
  was causing some state information to be lost.

Bug: 33584624
Change-Id: I0259870032185713caa9bff27092dbae6ce91199

7 years agoUse notification icon views' tags to store NotificationInfo.
Tony Wickham [Fri, 27 Jan 2017 22:28:42 +0000 (14:28 -0800)]
Use notification icon views' tags to store NotificationInfo.

Previously we had a mapping from View to NotificationInfo,
but this way we don't have to maintain that separate mapping
and can follow the pattern used throughout the rest of launcher.

Change-Id: Ia988f822613b9978bab3d0127226de920a3e73c9

7 years agoEnsure notification icons have enough contrast with background.
Tony Wickham [Fri, 27 Jan 2017 16:45:49 +0000 (08:45 -0800)]
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

7 years agoMerge "Handing pin item drag when workspce is not loaded" into ub-launcher3-master
Sunny Goyal [Fri, 27 Jan 2017 17:58:34 +0000 (17:58 +0000)]
Merge "Handing pin item drag when workspce is not loaded" into ub-launcher3-master

7 years agoImproving widget handling for pinItemRequest
Sunny Goyal [Wed, 25 Jan 2017 19:30:06 +0000 (11:30 -0800)]
Improving widget handling for pinItemRequest

> Preloading widget view while dragging for smoother
  transition
> Skipping config activity and sending confirmation to
  the caller when widget is dropped

Bug: 33584624
Change-Id: Ib23e5964298296d12d9c93f38aefdf924a07368e

7 years agoMerge "Updating manifest entry as per API changes" into ub-launcher3-master
Sunny Goyal [Fri, 27 Jan 2017 00:04:13 +0000 (00:04 +0000)]
Merge "Updating manifest entry as per API changes" into ub-launcher3-master

7 years agoMerge "Store notification keys in a List instead of a Set." into ub-launcher3-master
Tony Wickham [Thu, 26 Jan 2017 23:38:02 +0000 (23:38 +0000)]
Merge "Store notification keys in a List instead of a Set." into ub-launcher3-master

7 years agoUpdating manifest entry as per API changes
Sunny Goyal [Thu, 26 Jan 2017 22:40:10 +0000 (14:40 -0800)]
Updating manifest entry as per API changes

Bug: 34174006
Change-Id: I905532ba44a8898c9c17476f9f75bc309eeb7b41

7 years agoStore notification keys in a List instead of a Set.
Tony Wickham [Thu, 26 Jan 2017 17:54:48 +0000 (09:54 -0800)]
Store notification keys in a List instead of a Set.

This will preserve the order when iterating over the notifications to
populate the popup container.

Bug: 34735689
Change-Id: Ic390ffef140e454566ffc6ab1763950349df25ce

7 years agoAdd and update some comments badging/notifications.
Tony Wickham [Thu, 26 Jan 2017 17:24:41 +0000 (09:24 -0800)]
Add and update some comments badging/notifications.

Change-Id: Iab4e837c9be01cbd7764c8920e36c6d8159e16dd

7 years agoAdd swipe-to-dismiss notifications in popup menu.
Tony Wickham [Fri, 20 Jan 2017 17:38:25 +0000 (09:38 -0800)]
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

7 years agoHanding pin item drag when workspce is not loaded
Sunny Goyal [Wed, 25 Jan 2017 23:24:29 +0000 (15:24 -0800)]
Handing pin item drag when workspce is not loaded

While the launcher is loading, the drag view is displayed with a gray tint.
The drag is started, as soon as the workspace is unlocked

Bug: 33584624
Change-Id: I4013ea8b987ec305e73742b194f9e96af761cc35

7 years agoMerge "Refactor DeepShortcutsContainer to PopupContainerWithArrow" into ub-launcher3...
Tony Wickham [Wed, 25 Jan 2017 22:23:52 +0000 (22:23 +0000)]
Merge "Refactor DeepShortcutsContainer to PopupContainerWithArrow" into ub-launcher3-master

7 years agoMerge "Fixing loadWorkspace" into ub-launcher3-master
Sunny Goyal [Wed, 25 Jan 2017 20:53:01 +0000 (20:53 +0000)]
Merge "Fixing loadWorkspace" into ub-launcher3-master

7 years agoRefactor DeepShortcutsContainer to PopupContainerWithArrow
Tony Wickham [Mon, 23 Jan 2017 19:47:51 +0000 (11:47 -0800)]
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

7 years agoMerge "Add NotificationListener to launcher." into ub-launcher3-master
Tony Wickham [Wed, 25 Jan 2017 18:18:24 +0000 (18:18 +0000)]
Merge "Add NotificationListener to launcher." into ub-launcher3-master

7 years agoAdd NotificationListener to launcher.
Tony Wickham [Fri, 20 Jan 2017 16:15:28 +0000 (08:15 -0800)]
Add NotificationListener to launcher.

- NotificationListener extends NotificationListenerService, and is
  added to the manifest.
- Added PopupDataProvider, which contains logic for storing and
  interacting with data that goes into the long-press popup menu
  (shortcuts and notifications). A follow-up CL will rename
  DeepShortcutsContainer to a generic PopupContainerWithArrow.
- If Launcher has notification access, NotificationListener will
  get callbacks when notifications are posted and removed; upon
  receiving these callbacks, NotificationListener passes them to
  PopupDataProvider via a NotificationsChangedListener interface.
- Upon receiving the changed notifications, PopupDataProvider maps
  them to the corresponding package/user and tells launcher to
  update relevant icons on the workspace and all apps.

This is guarded by FeatureFlags.BADGE_ICONS.

Bug: 32410600
Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c

7 years agoMerge "Adding support for drag and drop for requestPinItem." into ub-launcher3-master
Sunny Goyal [Wed, 25 Jan 2017 17:36:42 +0000 (17:36 +0000)]
Merge "Adding support for drag and drop for requestPinItem." into ub-launcher3-master

7 years agoFixing loadWorkspace
Sunny Goyal [Sat, 14 Jan 2017 23:05:14 +0000 (15:05 -0800)]
Fixing loadWorkspace

> Adding checks on legacy shortcuts
> Checking restore status based on package and not componentName

Bug: 34123342
Change-Id: I442699e4ebb34ae66aa25c512bfcdc1b4fd5ae2a

7 years agoAdding support for drag and drop for requestPinItem.
Sunny Goyal [Sat, 21 Jan 2017 03:32:31 +0000 (19:32 -0800)]
Adding support for drag and drop for requestPinItem.

On long pressing, the confirmation activity starts a system
drag-n-drop and focuses the launcher activity. We then drive
the launcher drag controller using the system drag event

Caveats:
> We use a transparent preview for system drag and drop and use
  a view inside launcher for actual preview. This gives us better
  control over various animations.
> The parameters for drag operation are passed to the Launcher
  activity using the intent. Since onNewIntent and onDragEvent
  come at different times and are not associated, a random uuid
  is used as mime-type to match the drag event with intent params
> If the workspace is locked (eg, loader is running) the drag
  operation is simply dropped. Will be imporved in follow up cls

Bug: 33584624
Change-Id: I0bb5b25b690f86b6af31a14e11beb669fcb3a281

7 years agoMerge "Fixes a bug to not be able to scroll widgets intoduced when enabling to swipe...
Mario Bertschler [Wed, 25 Jan 2017 02:09:01 +0000 (02:09 +0000)]
Merge "Fixes a bug to not be able to scroll widgets intoduced when enabling to swipe allapps from everywhere." into ub-launcher3-master

7 years agoFix color for widget tray to match Default.Settings theme
Fan Zhang [Tue, 24 Jan 2017 23:47:43 +0000 (15:47 -0800)]
Fix color for widget tray to match Default.Settings theme

Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307
Fix: 34672511
Test: visual

7 years agoFixes a bug to not be able to scroll widgets intoduced when enabling
Mario Bertschler [Tue, 24 Jan 2017 19:57:32 +0000 (11:57 -0800)]
Fixes a bug to not be able to scroll widgets intoduced when enabling
to swipe allapps from everywhere.

The fix is to determine if the widget is scrollable on layouting instead
of the callback when a widget has been updated.

Bug: 34641906

Change-Id: Idc9d8ade7e601279b87856333ae754f4785131ac

7 years agoAdding some widget addition flow tests
Sunny Goyal [Sat, 21 Jan 2017 09:33:02 +0000 (01:33 -0800)]
Adding some widget addition flow tests

> Added two dummy widget providers: with config and without config
> Added tests for verify widget config flow

Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a

7 years agoMerge "Adding WidgetAddFlowHandler to handle widget addition and configuration."...
Sunny Goyal [Mon, 23 Jan 2017 19:33:28 +0000 (19:33 +0000)]
Merge "Adding WidgetAddFlowHandler to handle widget addition and configuration." into ub-launcher3-master

7 years agoAdding WidgetAddFlowHandler to handle widget addition and configuration.
Sunny Goyal [Sat, 21 Jan 2017 05:08:59 +0000 (21:08 -0800)]
Adding WidgetAddFlowHandler to handle widget addition and configuration.

This will allow us to override the implementation and provide custom
logic for widget addition.

Bug: 33584624
Change-Id: I310bf39e301c7e1c8de4f62456594535e2fe5bbc

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-master
TreeHugger Robot [Sat, 21 Jan 2017 01:18:03 +0000 (01:18 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master

7 years agoMerge "Using WidgetCell in the Pin Item confirmation prompt for a consistent UI Also...
Sunny Goyal [Sat, 21 Jan 2017 00:03:01 +0000 (00:03 +0000)]
Merge "Using WidgetCell in the Pin Item confirmation prompt for a consistent UI Also fixing some platform API changes in PinItemRequestCompat" into ub-launcher3-master

7 years agoUsing WidgetCell in the Pin Item confirmation prompt for a consistent UI
Sunny Goyal [Fri, 20 Jan 2017 19:54:25 +0000 (11:54 -0800)]
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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 20 Jan 2017 21:51:01 +0000 (13:51 -0800)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Fix shortcuts alignment in landscape" into ub-launcher3-master
TreeHugger Robot [Fri, 20 Jan 2017 21:23:38 +0000 (21:23 +0000)]
Merge "Fix shortcuts alignment in landscape" into ub-launcher3-master

7 years agoFix shortcuts alignment in landscape
Tony Wickham [Sat, 10 Dec 2016 01:15:12 +0000 (17:15 -0800)]
Fix shortcuts alignment in landscape

- Take left inset into account.
- If there is no way to orient the shortcuts next to the icon,
  instead center it in the drag layer and don't draw the arrow.
- If possible, place the shortcuts to the left or right of the
  icon when centered vertically. If for whatever reason that
  isn't possible, center the shortcuts horizontally as well.

Bug: 33421656
Change-Id: I838b30ea487e0f7c64637db1cb8991ca3ee16bf9

7 years agoMerge "Adding support for new APIs in O related to configurable shortcuts" into ub...
Sunny Goyal [Fri, 20 Jan 2017 18:35:08 +0000 (18:35 +0000)]
Merge "Adding support for new APIs in O related to configurable shortcuts" into ub-launcher3-master

7 years agoUpdating widget preview generation to not embed any badge.
Sunny Goyal [Sat, 14 Jan 2017 21:40:15 +0000 (13:40 -0800)]
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

7 years agoAdding support for new APIs in O related to configurable shortcuts
Sunny Goyal [Thu, 19 Jan 2017 18:27:54 +0000 (10:27 -0800)]
Adding support for new APIs in O related to configurable shortcuts

> Config activities can now return PinItemRequest which can be used to pin
  deep shortcuts

Bug: 33584624
Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da

7 years agoAdding support for requesting addition of shortcut/widget
Sunny Goyal [Fri, 13 Jan 2017 20:15:53 +0000 (12:15 -0800)]
Adding support for requesting addition of shortcut/widget
on the workspace.

Bug: 33584624
Change-Id: I664366822fe8088742faff2cce006239ab0771bc

7 years agoMerge "Moving icon generation out of ShortcutInfo constructor so that it can be creat...
Sunny Goyal [Wed, 18 Jan 2017 23:48:52 +0000 (23:48 +0000)]
Merge "Moving icon generation out of ShortcutInfo constructor so that it can be created on the UI thread" into ub-launcher3-master

7 years agoMerge "FastBitmapDrawable can draw an icon badge (notification count)" into ub-launch...
Tony Wickham [Wed, 18 Jan 2017 22:36:17 +0000 (22:36 +0000)]
Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ub-launcher3-master

7 years agoMoving icon generation out of ShortcutInfo constructor so that it
Sunny Goyal [Wed, 18 Jan 2017 19:30:23 +0000 (11:30 -0800)]
Moving icon generation out of ShortcutInfo constructor so that it
can be created on the UI thread

Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed

7 years agoFixes a bug where in Android O the all apps search icon appears
Mario Bertschler [Tue, 17 Jan 2017 23:04:37 +0000 (15:04 -0800)]
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

7 years agoMerge "Only marking items not already restored as restore" into ub-launcher3-master
Sunny Goyal [Sat, 14 Jan 2017 20:03:10 +0000 (20:03 +0000)]
Merge "Only marking items not already restored as restore" into ub-launcher3-master

7 years agoMerge "Fixing AppWidgetsRestoredReceiver updating model on UI thread" into ub-launche...
Sunny Goyal [Fri, 13 Jan 2017 23:00:40 +0000 (23:00 +0000)]
Merge "Fixing AppWidgetsRestoredReceiver updating model on UI thread" into ub-launcher3-master

7 years agoMerge "Loading proper app icon if the associated activity is null" into ub-launcher3...
Sunny Goyal [Fri, 13 Jan 2017 20:37:53 +0000 (20:37 +0000)]
Merge "Loading proper app icon if the associated activity is null" into ub-launcher3-master

7 years agoFastBitmapDrawable can draw an icon badge (notification count)
Tony Wickham [Wed, 11 Jan 2017 17:53:12 +0000 (09:53 -0800)]
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

7 years agoOnly marking items not already restored as restore
Sunny Goyal [Wed, 11 Jan 2017 22:33:38 +0000 (14:33 -0800)]
Only marking items not already restored as restore

> Moving the restore property to LoaderCursor

Bug: 34123089
Change-Id: I1f992ef086d65e0b3cf18d3b2cf37a4f254c97d2

7 years agoMerge "Removing promiseIntent property from ShortuctInfo" into ub-launcher3-master
Sunny Goyal [Fri, 13 Jan 2017 18:34:52 +0000 (18:34 +0000)]
Merge "Removing promiseIntent property from ShortuctInfo" into ub-launcher3-master

7 years agoRemoving promiseIntent property from ShortuctInfo
Sunny Goyal [Fri, 13 Jan 2017 00:55:36 +0000 (16:55 -0800)]
Removing promiseIntent property from ShortuctInfo

> Instead of checking promiseIntent != null, using isPromise() for consistency
> Fixing bug where clicking a pending icon does not launch anything
> Fixing bug where draging an icon on Info target, permanently hides the icon

Change-Id: Ic8f6b56042dba42d5ed9aedb0f5947186e1a4208

7 years agoMerge "Use MaskableIconDrawable only in dogfood builds" into ub-launcher3-master
Hyunyoung Song [Fri, 13 Jan 2017 01:34:03 +0000 (01:34 +0000)]
Merge "Use MaskableIconDrawable only in dogfood builds" into ub-launcher3-master

7 years agoUse MaskableIconDrawable only in dogfood builds
Hyunyoung Song [Wed, 11 Jan 2017 20:30:45 +0000 (12:30 -0800)]
Use MaskableIconDrawable only in dogfood builds

Bug: 32063838
Change-Id: Id0d15c4fff54b9429dbe5f9ee7ef26fd9cf8703d

7 years agoLoading proper app icon if the associated activity is null
Sunny Goyal [Wed, 11 Jan 2017 22:20:20 +0000 (14:20 -0800)]
Loading proper app icon if the associated activity is null

Bug: 34123342
Change-Id: Ibb80c6e442beea34c612fb4ce5246260714820e2

7 years agoFixing AppWidgetsRestoredReceiver updating model on UI thread
Sunny Goyal [Tue, 10 Jan 2017 23:29:18 +0000 (15:29 -0800)]
Fixing AppWidgetsRestoredReceiver updating model on UI thread

Bug: 34203314
Change-Id: If2c149f353109350e45e581a654956bec78bce96

7 years agoNo more LauncherActivityInfoCompat
Sunny Goyal [Thu, 5 Jan 2017 23:22:41 +0000 (15:22 -0800)]
No more LauncherActivityInfoCompat

Bug: 32745285
Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386

7 years agoRemoving static Context access using LauncherAppState
Sunny Goyal [Wed, 11 Jan 2017 18:48:34 +0000 (10:48 -0800)]
Removing static Context access using LauncherAppState

> This ensures that LauncherAppState is only accessed in the presence of
a valid context

Bug: 33032833
Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750

7 years agoMerge "Reset initial animation values before completing reorder animation." into...
Jonathan Miranda [Wed, 11 Jan 2017 20:21:00 +0000 (20:21 +0000)]
Merge "Reset initial animation values before completing reorder animation." into ub-launcher3-master

7 years agoEnforcing background thread when accessing iconCacheDb.
Sunny Goyal [Sat, 7 Jan 2017 00:32:57 +0000 (16:32 -0800)]
Enforcing background thread when accessing iconCacheDb.

> Moving any icon cache access to background thread
> Updating Apps list to avoid loading icons for ignored apps

Bug: 21325319
Change-Id: Id72755100f1176ccfcc99249c5e02873cc249a13

7 years agoMerge "Creating AllAppsBackgroundDrawable using DrawableFactory to allow easier overr...
Sunny Goyal [Wed, 11 Jan 2017 00:26:22 +0000 (00:26 +0000)]
Merge "Creating AllAppsBackgroundDrawable using DrawableFactory to allow easier overriding using derivative projects" into ub-launcher3-master

7 years agoMerge "Refactoring some loadWorkspace logic in a separate class" into ub-launcher3...
Sunny Goyal [Tue, 10 Jan 2017 22:01:14 +0000 (22:01 +0000)]
Merge "Refactoring some loadWorkspace logic in a separate class" into ub-launcher3-master

7 years agoRefactoring some loadWorkspace logic in a separate class
Sunny Goyal [Fri, 6 Jan 2017 05:50:27 +0000 (21:50 -0800)]
Refactoring some loadWorkspace logic in a separate class

Bug: 34112546
Change-Id: I8a43ed1646056aa1957ac3d6ea82018691df6386

7 years agoFixing AppInfo missing intent when loading icon
Sunny Goyal [Tue, 10 Jan 2017 21:49:59 +0000 (13:49 -0800)]
Fixing AppInfo missing intent when loading icon

Bug: 34199268
Change-Id: I7223d1d408e7b48f9c63c9801c2805aaf7363038

7 years agoMerge "This enables to slide up All Apps from anywhere in the workspace, not only...
Mario Bertschler [Mon, 9 Jan 2017 23:01:52 +0000 (23:01 +0000)]
Merge "This enables to slide up All Apps from anywhere in the workspace, not only over the hotseat." into ub-launcher3-master

7 years agoThis enables to slide up All Apps from anywhere in the workspace,
Mario Bertschler [Thu, 5 Jan 2017 00:31:57 +0000 (16:31 -0800)]
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

7 years agoAdding some logging around launcher restore
Sunny Goyal [Thu, 5 Jan 2017 22:36:02 +0000 (14:36 -0800)]
Adding some logging around launcher restore

> Also enabling fileLog when the device is debug build (even when
launcher is not dogfood build)

Bug: 30735662
Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7

7 years agoMerge "Fixed mw bug where resize frame is off when resizing." into ub-launcher3-master
Jonathan Miranda [Mon, 9 Jan 2017 19:48:01 +0000 (19:48 +0000)]
Merge "Fixed mw bug where resize frame is off when resizing." into ub-launcher3-master

7 years agoCreating AllAppsBackgroundDrawable using DrawableFactory to allow
Sunny Goyal [Sun, 8 Jan 2017 21:13:47 +0000 (13:13 -0800)]
Creating AllAppsBackgroundDrawable using DrawableFactory to allow
easier overriding using derivative projects

Change-Id: I7265d888876ea0928391f76ec1bcb7d928c0f27a

7 years agoMerge "Removing logic around replacing icon during restore" into ub-launcher3-master
Sunny Goyal [Fri, 6 Jan 2017 18:01:36 +0000 (18:01 +0000)]
Merge "Removing logic around replacing icon during restore" into ub-launcher3-master

7 years agoRemoving logic around replacing icon during restore
Sunny Goyal [Thu, 5 Jan 2017 22:03:59 +0000 (14:03 -0800)]
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

7 years agoUpdating PendingAppWidgetHostView to load icon on the background thread
Sunny Goyal [Wed, 4 Jan 2017 00:52:43 +0000 (16:52 -0800)]
Updating PendingAppWidgetHostView to load icon on the background thread

Bug: 21325319
Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2

7 years agoMerge "Enables direct scrolling on the fastscroll bar." into ub-launcher3-master
Mario Bertschler [Thu, 5 Jan 2017 19:29:40 +0000 (19:29 +0000)]
Merge "Enables direct scrolling on the fastscroll bar." into ub-launcher3-master

7 years agoRevert "Build empty test apk until junit dependency issue is sorted out."
Hyunyoung Song [Thu, 5 Jan 2017 18:55:42 +0000 (10:55 -0800)]
Revert "Build empty test apk until junit dependency issue is sorted out."

This reverts commit 4c82c33a64b9f6719a0a1457361362cf70e2c9ac.

Change-Id: I39c142e2b0e882245a6928264465578e4ddc12c9

7 years agoReset initial animation values before completing reorder animation.
Jon Miranda [Wed, 4 Jan 2017 22:03:07 +0000 (14:03 -0800)]
Reset initial animation values before completing reorder animation.

In some reorder cases, the icons would stop in a transient position.

Change-Id: I9d358e74ab403989929dee87542d3dde78c2f229

7 years agoMerge "Fixing onPageBeginTransition not being called when scrolling overlay" into...
Sunny Goyal [Wed, 4 Jan 2017 21:57:39 +0000 (21:57 +0000)]
Merge "Fixing onPageBeginTransition not being called when scrolling overlay" into ub-launcher3-master

7 years agoFixing onPageBeginTransition not being called when scrolling overlay
Sunny Goyal [Tue, 3 Jan 2017 22:55:47 +0000 (14:55 -0800)]
Fixing onPageBeginTransition not being called when scrolling overlay

Bug: 33693546
Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8

7 years agoMerge "Simplifying IconCache access code" into ub-launcher3-master
Sunny Goyal [Wed, 4 Jan 2017 00:33:45 +0000 (00:33 +0000)]
Merge "Simplifying IconCache access code" into ub-launcher3-master

7 years agoSimplifying IconCache access code
Sunny Goyal [Fri, 16 Dec 2016 01:40:07 +0000 (17:40 -0800)]
Simplifying IconCache access code

Providing a way to access icon cache without LauncherAcitivtiyInfo.
This allows fetching LauncherActivityInfo only when required, thus
avoiding system RPC when the icon is already in cache.

Change-Id: I92918c7a0d0d0796e5f7b70d4ecb6787c52c6600

7 years agoEnables direct scrolling on the fastscroll bar.
Mario Bertschler [Tue, 27 Dec 2016 23:41:24 +0000 (15:41 -0800)]
Enables direct scrolling on the fastscroll bar.

This enables to touch anywhere in the scrollbar to directly scroll to that particular point
without the need of exactly touching the thumb to start fastscrolling.

This feature is currently behind a feature flag LAUNCHER3_DIRECT_SCROLL and enabled by default.

Change-Id: I5b86c6acb71ff0c88476343657da221c7bdc59c3

7 years agoBind the out IntRange using its start and end values.
Jon Miranda [Tue, 3 Jan 2017 17:30:00 +0000 (09:30 -0800)]
Bind the out IntRange using its start and end values.

In applyDeltaAndBound, we add the current IntRange values
+ delta param to the outbound IntRange -- but then we only
bind based on the current IntRange values, so the out IntRange
values can end be out of bounds.

Change-Id: Ibbaae8c2c2734107d1fd7ce8a59a4c66d83068ad

7 years agoFixed mw bug where resize frame is off when resizing.
Jon Miranda [Wed, 28 Dec 2016 18:49:55 +0000 (10:49 -0800)]
Fixed mw bug where resize frame is off when resizing.

When a widget resizes in multi-window mode (ie. user is dragging
the resize frame), the frame is misaligned until the user lets go.
This is because the translation value to center fit the resized
widget is not taken into consideration.

Bug: 32176631
Change-Id: I6f9ee7be12d3266f021796576c771f86f6120246

7 years agoMerge "Fix widget reorder animations in multi-window mode." into ub-launcher3-master
Jonathan Miranda [Fri, 30 Dec 2016 00:42:11 +0000 (00:42 +0000)]
Merge "Fix widget reorder animations in multi-window mode." into ub-launcher3-master

7 years agoMerge "Fixes a bug where the user ends in freescroll state even for regular workspace...
Mario Bertschler [Thu, 29 Dec 2016 23:33:01 +0000 (23:33 +0000)]
Merge "Fixes a bug where the user ends in freescroll state even for regular workspace mode." into ub-launcher3-master

7 years agoRemoving static access to Context through LauncherAppState
Sunny Goyal [Thu, 29 Dec 2016 21:31:43 +0000 (13:31 -0800)]
Removing static access to Context through LauncherAppState

Bug: 33032833
Change-Id: I09baaa6d79187b3096a2ab3a89d7dcaeaf9eee68

7 years agoMerge "Removing all compatibility code below Lollipop" into ub-launcher3-master
Sunny Goyal [Thu, 29 Dec 2016 21:29:31 +0000 (21:29 +0000)]
Merge "Removing all compatibility code below Lollipop" into ub-launcher3-master

7 years agoFixes a bug where the user ends in freescroll state even for regular workspace mode.
Mario Bertschler [Wed, 21 Dec 2016 19:48:48 +0000 (11:48 -0800)]
Fixes a bug where the user ends in freescroll state even for regular workspace mode.

The bug happened while reordering pages in overview mode and clicking the back button.
The fix is to check the precodition in enableFreeScroll if we are in a valid state for enabling freescroll (currently only overview mode).

Bug: 33347786
Change-Id: Icc3005fd431569e2b9e3f52d2249de8ba8d13eab

7 years agoFix clipping of drag outline by increasing padding.
Jon Miranda [Thu, 13 Oct 2016 03:35:59 +0000 (20:35 -0700)]
Fix clipping of drag outline by increasing padding.

Low resolution will be addressed in future CL.

Bug: 31915722
Change-Id: I6bdd32b7a30819fde1f15473a63ac280029b6715

7 years agoFix widget reorder animations in multi-window mode.
Jon Miranda [Mon, 19 Dec 2016 22:12:05 +0000 (14:12 -0800)]
Fix widget reorder animations in multi-window mode.

The original animation assumed that the views are not
translated and not scaled. In multi-window mode this
assumption is no longer valid, because app widgets are
scaled and translated to fit center within their cells.

Bug: 32176631
Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38

7 years agoNav bar should change to light theme in sync with the status bar
Hyunyoung Song [Mon, 19 Dec 2016 22:46:21 +0000 (14:46 -0800)]
Nav bar should change to light theme in sync with the status bar
b/33708486

Nav bar should be in sync with status bar in all apps screen.
Nave bar should not change with status bar when in workspace mode.

Change-Id: Ib5a0d33d3e38f1b3ffa9693657ba7de3b6e01fed

7 years agoRemoving all compatibility code below Lollipop
Sunny Goyal [Fri, 16 Dec 2016 23:04:51 +0000 (15:04 -0800)]
Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3

7 years agoMerge "Using support lib for isAtleastO check" into ub-launcher3-master
Sunny Goyal [Fri, 16 Dec 2016 22:00:16 +0000 (22:00 +0000)]
Merge "Using support lib for isAtleastO check" into ub-launcher3-master

7 years agoUpdating edge scrolling logic during drag and drop
Sunny Goyal [Thu, 15 Dec 2016 19:02:21 +0000 (11:02 -0800)]
Updating edge scrolling logic during drag and drop

Activating scroll to left when the either the visualCenter or the touchX
enters the left screen first or right screen.
Previously only the touch point was being considered to activating the scroll
zone. But visual center is used everywhere else for actual drop location. So
depending on the touch point relative to the picked icon, the touch zone could
seem smaller or larger.
Using both points (touch and visualCenter) will increase the scroll zone area
with minimal effect on the drop location calculation.

Bug: 31946075
Change-Id: I4eb5146c0f0a05e8d024313d67f8e040e0b29dec

7 years agoUsing support lib for isAtleastO check
Sunny Goyal [Fri, 16 Dec 2016 17:15:32 +0000 (09:15 -0800)]
Using support lib for isAtleastO check

Bug: 32610406
Change-Id: I89b3c4f0c99ac605883677cf0becaab0fbf48a86

7 years agoNo more UserHandleCompat
Sunny Goyal [Thu, 15 Dec 2016 23:53:17 +0000 (15:53 -0800)]
No more UserHandleCompat

Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95

7 years agoMerge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master
Sunny Goyal [Fri, 16 Dec 2016 00:21:29 +0000 (00:21 +0000)]
Merge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master

7 years agoMerge "Restore original scaleRectAboutCenter method." into ub-launcher3-master
Jonathan Miranda [Thu, 15 Dec 2016 19:36:40 +0000 (19:36 +0000)]
Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-master

7 years agoRestore original scaleRectAboutCenter method.
Jon Miranda [Thu, 15 Dec 2016 19:24:18 +0000 (11:24 -0800)]
Restore original scaleRectAboutCenter method.

Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25

7 years agoUsing java_style enum generation for proto
Sunny Goyal [Tue, 22 Nov 2016 20:54:32 +0000 (02:24 +0530)]
Using java_style enum generation for proto

This makes it easier to track various method parameters and simplifies
debug logging

Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569