Commit Graph

1543 Commits

Author SHA1 Message Date
Adam Cohen 3993348043 Remove discovery bounce for demo users
Bug 67116550

Change-Id: I8a27685f91e201072c0669c102077affe550fab6
2017-10-02 20:49:30 +00:00
Sunny Goyal fca6bc9dce Adding a utility method to simplify method tracing
Change-Id: I79ef0aa5d65b933f4b7f0520fc8bac26e366da2d
2017-10-02 13:47:42 -07:00
Sunny Goyal f2dd4216c1 Removing extraction service and palette api dependency
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Jonathan Miranda ef4697fdad [automerger] Fix bug where widgets are inflated in the wrong orientation. am: 6bed350b75
Change-Id: I9d4bdaba96fe6afc90a48a141cd3af640b592a7a
2017-09-19 21:43:36 +00:00
Jon Miranda 6bed350b75 Fix bug where widgets are inflated in the wrong orientation.
The bug is that in onResume, the context may tell us the wrong
orientation.

As a workaround, we store the orientation that the Launcher
is created with, and we use that orientation to check whether
we actually need to reinflate the widgets.

Bug: 64916689
Change-Id: I5194debbd217a573d1f177c31d8c0abdf9da51b5
2017-09-19 14:43:17 -07:00
Hyunyoung Song 465435d16d Merge "Remove haptic on touch down Bug: 65463659" into ub-launcher3-dorval-polish2 2017-09-14 17:51:48 +00:00
Hyunyoung Song 2dd64c0710 Merge changes from topic "am-ef87c1d2-519f-467f-b097-802ff59b63b3" into ub-launcher3-master
* changes:
  [automerger] Remove haptic on touch down Bug: 65463659 am: d315ff2bc2
  Remove haptic on touch down Bug: 65463659
2017-09-14 17:51:48 +00:00
Sunny Goyal 952e63d006 Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects
> Fixing verious bind and save logic for custom widgets
> Adding feature flag to easily disable custom widgets

Change-Id: I0e278bc7dd415713029364060ef10842da990be9
2017-09-13 14:04:35 -07:00
Hyunyoung Song 3705664cf0 [automerger] Remove haptic on touch down Bug: 65463659 am: d315ff2bc2
Change-Id: Ib476e68fe09e94e4a6299434c876b8bd4834c248
2017-09-12 22:55:15 +00:00
Hyunyoung Song d315ff2bc2 Remove haptic on touch down
Bug: 65463659

Change-Id: I111d18a3d1dcd7877ad4aa5baaeca2e6810be332
2017-09-12 15:54:50 -07:00
Hyunyoung Song 8c1e15f3a5 [automerger] WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 am: e24cb63b81
Change-Id: I85935372c20d6b473b692119730212811e01657d
2017-09-11 19:17:38 +00:00
Hyunyoung Song e24cb63b81 WallpaperManagerCompat should target correct platform
Also replace Utilities.isAtLeastO() to static final constant.
Bug: 65544683

Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
2017-09-11 12:17:09 -07:00
Sunny Goyal 7ce471bdf6 Removing support for CustomContent screen
The supported way to customize Launcher and add a "-1 page" is by
using LauncherOverlays. Custom content screen is no longer supported.

Change-Id: I3f8a2734c287d1a69ae0c038ec1de1d45fa1b464
2017-09-08 14:06:30 -07:00
Sunny Goyal e18d3f537f Updating the all-apps discovery bounce animation
> Animation plays on every onResume
> Updating animation to loop continuously on v23+
> Updating animation spec

Bug: 64331951
Change-Id: Ic6fb8d6975b37f5b010fc585329cba615296f5c7
2017-08-29 10:17:51 -07:00
Mario Bertschler 8ff9e1d679 Integrating suggested app by handling new status flags for shortcut items.
Guarded via feature flag SUGGESTED_APP.

Bug: 62483883

Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
2017-08-24 12:23:06 -07:00
TreeHugger Robot d722645e7f Merge "Simplifying some package matching code by using common itemInfo mathcher" into ub-launcher3-dorval-polish2 2017-08-21 19:28:39 +00:00
TreeHugger Robot b55b6264ae Merge "Remove LAUNCHER3_ALL_APPS_PULL_UP Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works." into ub-launcher3-dorval-polish2 2017-08-21 19:22:56 +00:00
Hyunyoung Song d725f644b7 Remove LAUNCHER3_ALL_APPS_PULL_UP
Bug: 63712253
Verified: all apps transition fully functional
Verified: NO_ALL_APPS_ICON = false case also works.

Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
2017-08-21 11:59:14 -07:00
Sunny Goyal 49fc3f7aa8 Fixing bindAllApplications scheduled with null list.
When deferring bindAllApplications, the same global state was being
used to store the pending state. This global state was being cleared
in one deferred execution after a second execution was scheduled, causing
the second execution to get null/wrong values.

Instead using independent local/anonymous class to maintian states, so that
it does not get cleared by other methods.

Bug: 64789383
Change-Id: I78477a110fe663603b4bdeb7d1fac7c4ce0831a2
2017-08-18 12:07:11 -07:00
Sunny Goyal a9a1a210d3 Fixing crashloop due to ag/2750101
Change-Id: Idebf6bfad4e56a52780b848fbb09b3a0134ffdc2
2017-08-18 01:03:48 -07:00
Sunny Goyal 6e13dd3aa8 Simplifying some package matching code by using common itemInfo mathcher
Change-Id: Ib98d528391e19c0de3fe11304330dfa37710548c
2017-08-17 11:15:12 -07:00
Sunny Goyal b23980cc0e Fixing duplicate/inconsistent definitions for model and callbacks
> 2 implementations for filtering workspace items
> 2 implementations for binding widgets
> duplicate logic for add and update appInfo

Change-Id: Id68a49926af398478deca8ac85ab1f22341a9449
2017-08-17 11:05:56 -07:00
Tony 2917a8bf2b Defer some work until after workspace fade-in
Defer:
- Setting all apps
- Setting widgets

Also set the launcher-loader thread to THREAD_PRIORITY_BACKGROUND
for the duration of the animation.

Bug: 37965432
Change-Id: I8364940805b84aecb8353a473ab4d575c27bfec4
2017-08-04 11:52:42 -07:00
Sunny Goyal 786a25e9ec [automerger] Sending onCreate to the callbacks after our call is complete am: 14b3240eca
Change-Id: If854ef0686bf528a41778f8ec0ab3779f2122e54
2017-07-31 17:04:46 +00:00
Sunny Goyal 14b3240eca Sending onCreate to the callbacks after our call is complete
Bug: Bug: 63381480
Change-Id: Ib5fcd9ef500a91fef93c9e5af657b23723748ccc
2017-07-31 10:04:06 -07:00
Jonathan Miranda f880ecca32 [automerger] Optimize updating All Apps Predictions. am: 7653a60c74
Change-Id: Id7ebeee3d4cc605849ac95623ffe6321bc691b7a
2017-07-30 18:05:43 +00:00
Jon Miranda 7653a60c74 Optimize updating All Apps Predictions.
* Prefetch existing predictions in onResume.
* Only update predictions if something has been changed.
* Swap predictions in place (if possible) -- this avoids
  having to relayout all of All Apps when just the predictions
  change.

Bug: 64126588
Bug: 63711551
Change-Id: Iffa0d9d7d6f99f606dd68b7df5893d6eba1574f5
2017-07-30 11:04:58 -07:00
Sunny Goyal e29897f503 Adding spring effect for folder icons when dragging similar to adaptive icons
Bug: 63889144
Change-Id: Idd1fd13c6343bf3e0a3a0e5ff0be730d41996575
2017-07-25 14:30:54 -07:00
Sunny Goyal 64a75aa305 Adding A feature flag to disable widgets and a corresponding build
target Launcher3Go without widgets support

Bug: 62353159
Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
2017-07-21 14:10:13 -07:00
TreeHugger Robot bdf6e7d8f8 Merge "Update when Launcher's scrim should fade." into ub-launcher3-dorval-polish 2017-07-20 18:20:34 +00:00
Jon Miranda 7fda285cf0 Update when Launcher's scrim should fade.
* Scrim will fade first time the user starts Launcher (unlocks device).
* Scrim will fade if resuming from a screen off and Launcher is in
  the foreground.

Bug: 63801668

Change-Id: I4465765fe5a0f81c2f4dec715f9f5a24a309fc1b
2017-07-20 11:10:07 -07:00
Jonathan Miranda db8bc9b044 Update when Launcher's scrim should fade. am: 7fda285cf0
Change-Id: I0761f13886f34d9f27bc50ee523a0c1de7f6a7a1
2017-07-20 18:09:39 +00:00
Sunny Goyal 2b50b53183 Updating UserEventDispatcher to make some methods accessible.
> Removing helper methods around fillInLogContainerData so that its easier to
  create events with 3 and more srcTargets
> Removing setPredictedApps from userEventDispatcher as its specific to Launcher
  and does not apply to other activities. Instead moving it to AllAppsRecyclerView

Bug: 63719473
Change-Id: Ib92621e41ede4ffe03892642ab173772b5a84dd1
2017-07-19 11:03:35 -07:00
Adam Cohen bf78f3cd41 Collapse caret click and all apps click into one
-> Was separating them for cleanliness, but turns out
   in portrait the caret is the button, but in landscape it's not.
   We'll clean all this up later.

Change-Id: Icbc185f9183ded685b4a988eacf19cb7583ed8ad
2017-07-14 16:11:10 -07:00
Adam Cohen 5441a9d30a Make landscape all apps caret clickable when in all apps as well as workspace
-> Also increase the touch target size of the caret
-> Center the asset horizontally within the view (but keep it bottom
   asligned)

issue 63681599
issue 63682248

Change-Id: I64efdfb9f84b82cc21d82c10d9301a99fed3353a
2017-07-14 22:09:56 +00:00
Sunny Goyal c7b8df8329 Sanitizing various search container ids and layout names
Bug: 63014381
Change-Id: Ia75a8a048c7a85c6324f8861abd2bcf1721032fa
2017-06-27 11:11:32 -07:00
TreeHugger Robot 3ed3076550 Merge "Fixing drag outline not getting drawn when the shortcuts popup is shown." into ub-launcher3-dorval-polish 2017-06-26 21:14:13 +00:00
Hyunyoung Song 1322f9cb9a Fixing drag outline not getting drawn when the shortcuts popup is shown.
Shortucts popup uses predrag listener to manage the transient state of
the icon. Fixing the order of PredragListener, such that predragEnd gets
called before dragStart. This allows the transient state to be cleared
before any other state changes are done by onDragStart.

Bug: 62544416
Change-Id: I77c9a1aa17a15fe6f9f342af7a7fe3092a9d026b
2017-06-26 11:25:01 -07:00
Rajeev Kumar 43c0f58b08 Few cleanups in Launcher.java:
1. Fix static member accessed via instance reference
2. Get rid of explicit type arguments
3. Make few instance variables final
4. Get rid of redundant 'public' modifier for interface methods
5. Get rid of an unnecessary return statement

Change-Id: I3beec5ca14e61ed5cdd26b38c1273679c801acc2
2017-06-23 15:34:55 -07:00
Sunny Goyal 8392c823a9 Fixing various system UI flags not getting updated properly on theme changes.
SystemUiController manages various system UI flags in priorty order and merges
all the states before applying the syste flags.
Fixing WallpaperColors when it was not handing wallpaper change properly in
some cases

Change-Id: I915442818e7888c97c81f63c8ea9f3c13053eb2c
2017-06-20 10:55:27 -07:00
Jon Miranda 0966072c91 Portrait grid changes for Workspace/All Apps.
Bug: 37015359
Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
2017-06-19 17:02:45 -07:00
Sunny Goyal 5606e07059 Removing long press support from page-indicator
Bug: 62445549
Bug: 38163974
Change-Id: Ic0ae44ded7e4755c5401f327ce0d98a9ea96b2ab
2017-06-15 14:25:12 -07:00
Sunny Goyal a616d2b0e2 resolve merge conflicts of 5cc7bbdbb to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: If3359341d5269f2c908b3a8856b6f38ba69a05eb
2017-06-12 13:54:01 -07:00
Sunny Goyal 5cc7bbdbb3 Removing dependency on onAttachedToWindow callback.
When resizing in multi-window mode, the system reuses the decorView and
may not call onAttachedToWindow.

Bug: 62495747
Bug: 38463796
Change-Id: I949f8f8e37b5a4748947024df09097f15c940bf8
2017-06-12 11:14:11 -07:00
Mario Bertschler a693694502 Dark color on super light wallpaper support
Change-Id: I0fdfa9abefb72e06c45b1f635ac97e2acfa97f05
2017-06-07 15:25:07 -07:00
Sunny Goyal 966d901af0 Removing QsbBlockerView
> Removing workspace state change listener. State change happens with hardware layer,
  so children should not be calling invalidatge() during the animation
> Moving QSB inside the QSB and removing a floating layout

Bug: 37616877
Change-Id: I9af3522a05dafa5796586bb64f512d98688caf79
2017-06-06 16:48:25 -07:00
TreeHugger Robot 9b9beae02e Merge "Moving LoaderTask static" into ub-launcher3-dorval-polish 2017-06-05 19:49:11 +00:00
Sunny Goyal c6e97692e4 Moving LoaderTask static
Will move it to a separate file in a followup cl.
This simplifies dependencies between LauncherModel and LoaderTask which
and making it easier to start the loader before Launcher activity is
created (as the Callbacks in LauncherModel can change while loader is running).

Bug: 34112546
Bug: 37616877
Change-Id: Ie9619c6b0de0e3eb60657c04ae1b58d946c829e9
2017-06-02 14:27:29 -07:00
Tony 85efb4b07d Launch wallpaper picker with rectangular reveal
There was a logic error causing it to be launched with null
activity options.

Bug: 37904252
Change-Id: Ia44b7bccf0b7f83ceab9d3949542b79a842e4873
2017-06-02 13:06:10 -07:00
TreeHugger Robot 552e6c803c Merge "Theming on Scrim- and GradientView" into ub-launcher3-dorval-polish 2017-05-25 20:33:26 +00:00