Commit Graph
7093 Commits
Author SHA1 Message Date
Jon Miranda 846455e1ff Larger icons for L3Go and spacing changes.
There are cases (ie. smaller devices) where the icon label is closer
to the icon below it (rather than its corresponding icon).

To fix this, we ensure that the drawable padding (space between the
icon and its label) is no larger than the vertical padding of the cell.

Bug: 67317867
Change-Id: Ic3729726eebb60b67d658361c4335e724b7d68d7
2017-10-03 11:23:05 -07:00
Adam Cohen 3993348043 Remove discovery bounce for demo users
Bug 67116550

Change-Id: I8a27685f91e201072c0669c102077affe550fab6
2017-10-02 20:49:30 +00:00
TreeHugger Robot 230cf17fe6 Merge "Fix predictiveApps Bug: 67010327" into ub-launcher3-dorval-polish2 2017-09-29 20:49:18 +00:00
Hyunyoung Song 7a77f1e678 Fix predictiveApps
Bug: 67010327

Change-Id: Iab6ea790e99bb66bd0d7d4f07a8ad9fa05387d13
2017-09-29 13:41:43 -07:00
Adam Cohen 8831252399 Merge changes from topic "demoModeTopic" into ub-launcher3-dorval-polish2
* changes:
  [automerger] Demo mode default layout support am: 2782449da6
  Demo mode default layout support
2017-09-29 20:38:08 +00:00
Android Build Merger (Role) ea1212a38a [automerger] Demo mode default layout support am: 2782449da6
Change-Id: I0d03e760f97c6f9984ad0bf9e8f9e8c7a8a8b5c7
2017-09-29 15:49:43 +00:00
Adam Cohen 2782449da6 Demo mode default layout support
67062454

Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
2017-09-29 15:49:34 +00:00
Sunny Goyal 6b0aa870b8 Caching system app flag to avoid unnecessary system calls
when scrolling

Bug: 65493000
Change-Id: If60ec6dec23e7efa1031d72e76775fa2449bcd7b
2017-09-29 07:55:25 -07:00
Jon Miranda 11ee2f6e8f Move orientation initialization to onCreate.
Bug: 64916689
Change-Id: Iacc04dcc261fc049b83cb81792975414fb00b3cc
2017-09-20 10:18:41 -07: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
TreeHugger Robot d926a9316f Merge "Fixing widgets not getting restored when the corresponding system app is enabled" into ub-launcher3-dorval-polish2 2017-09-18 17:14:10 +00:00
Tony Wickham 42b5f52b36 Merge "Ignore clicks on notifications that don't have intents." into ub-launcher3-dorval-polish2 2017-09-18 17:11:33 +00:00
Sunny Goyal adaf210794 Fixing widgets not getting restored when the corresponding system app is enabled
Bug: 64723295
Change-Id: I143b554087e6ff8cfbdb5f02d53fdcc7a1ce3b12
2017-09-18 10:04:37 -07:00
Tony Wickham 22cb37745c Ignore clicks on notifications that don't have intents.
Bug: 64479852
Change-Id: I3bfff96a12169d0d191a36a8c7e90d4810e9f176
2017-09-15 17:38:48 -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 d315ff2bc2 Remove haptic on touch down
Bug: 65463659

Change-Id: I111d18a3d1dcd7877ad4aa5baaeca2e6810be332
2017-09-12 15:54:50 -07:00
TreeHugger Robot 673f917d57 Merge "WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683" into ub-launcher3-dorval-polish2 2017-09-11 21:40:47 +00:00
Sunny Goyal a41ebf0cd2 Fixing promise icons not getting restored after the app is installed
Bug: 65387781
Change-Id: I8f6ca6695ad074a707b574af9499586fdd90d5c1
2017-09-11 13:07:41 -07: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
TreeHugger Robot 9c1607886b Merge "Try-catching getColorHints in wallpapermanager compat." into ub-launcher3-dorval-polish2 2017-09-06 21:25:54 +00:00
Tony Wickham 9fad935b03 Merge "Adjust notification paddings" into ub-launcher3-dorval-polish2 2017-09-06 21:17:29 +00:00
Mario Bertschler 2b1073994c Try-catching getColorHints in wallpapermanager compat.
Change-Id: I1b2fbbdfeecb46d1864dad888f4c7e9765a25715
2017-09-06 14:06:09 -07:00
Tony Wickham 2063ebd990 Adjust notification paddings
- Reduce main notification height
- Increase header height and center "Notifications"
- Footer has short height when empty to serve as padding

Bug: 65215656
Change-Id: I691d176628b0b51e8d9af030084b8c29837778dc
2017-09-06 13:37:00 -07:00
Mario Bertschler aeed7f24f2 Remove reflection from wallpaper manager for wallpaper colors.
Bug: 65016704
Change-Id: I36bac7a3cd9cd4911657e693a424c9960cb9d042
2017-09-05 14:58:30 -07:00
Jon Miranda 01521b52a8 Fix bug where Launcher crashes when pinned shortcut has no icon.
Bug: 65187090
Change-Id: Ica5b10e640cf4ab752055da2f4e352680ab26391
2017-08-30 14:47:41 -07:00
Sunny Goyal 8f3285c1c5 Merge "Fix bug where dragging app from Search breaks Folder preview." into ub-launcher3-dorval-polish2 2017-08-30 19:20:40 +00:00
TreeHugger Robot bb28c01cf4 Merge "Fix bug where mw landscape cell size is calculated incorretly." into ub-launcher3-dorval-polish2 2017-08-30 19:17:07 +00:00
Jon Miranda 4f59381bc4 Fix bug where dragging app from Search breaks Folder preview.
Bug: 64975940
Change-Id: I3182a9396aa1e34bc3489f794f2de40387c50da3
2017-08-30 11:59:30 -07:00
Sunny Goyal 472110e773 Merge "Updating the all-apps discovery bounce animation" into ub-launcher3-dorval-polish2 2017-08-30 18:37:14 +00:00
TreeHugger Robot f8dcb365b4 Merge "Disable debugging on Widgets Diff Reporter Bug: 65160070" into ub-launcher3-dorval-polish2 2017-08-29 18:23:04 +00:00
TreeHugger Robot 3909cf5b5f Merge "Fix @SuppressWarnings('deprecation') typo." into ub-launcher3-dorval-polish2 2017-08-29 18:17:00 +00:00
Hyunyoung Song 36628a1122 Disable debugging on Widgets Diff Reporter
Bug: 65160070

Change-Id: Idee5b850d0dd5abaaa8571533adf802e276c4495
2017-08-29 11:13:13 -07:00
Jon Miranda 7927b03287 Fix @SuppressWarnings('deprecation') typo.
http://errorprone.info/bugpattern/SuppressWarningsDeprecated

This typo throws a build error on oc-mr1-dev.

Bug: 64937210
Change-Id: I4c48a22c5ac0f296053753d4058385581037ab06
2017-08-29 11: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 5459b66bb6 AppInfo to create launch intent from component name.
Change-Id: I11e0645acde57e60cd5596447c2aba62ef5ff1a9
2017-08-29 09:04:39 -07:00
TreeHugger Robot ff58fe239a Merge "IconCache should refresh on OTAs" into ub-launcher3-dorval-polish2 2017-08-29 02:24:23 +00:00
Sunny Goyal 4cebfc3484 Merge "Adding support for badging instant app icons." into ub-launcher3-dorval-polish2 2017-08-28 23:16:21 +00:00
Hyunyoung Song 3152827d3b IconCache should refresh on OTAs
Background: PackageInfo may not have changed but when upgrading from N to O, the icon
cache need to refresh in order to show Adaptive icons.

Bug: 65062494
Change-Id: If3bf579c3dd035fe8d4e10c5741532fdb2a9d6fe
2017-08-28 15:58:40 -07:00
Sunny Goyal f5523921c3 Adding support for badging instant app icons.
Change-Id: Idc43a1a83e0a93f70879730a0acefbc124f9c0e2
2017-08-28 15:35:25 -07:00
Jon Miranda 7fb9e712e8 Increase overview icon zone percentage from 20% to 22%.
This handles the case where "Home Settings" text is split into
two lines and is cropped when the user is in multi-window mode with
settings Display=Largest and Font=Largest.

Bug: 64976707
Change-Id: Ia1a4ee35a94a2fbe99f8ed25fce93a023e621147
2017-08-28 14:47:59 -07:00
Jonathan Miranda 1ad3c8f61e Merge "Add spring to QSB when opening all apps." into ub-launcher3-dorval-polish2 2017-08-28 17:30:19 +00:00
Mario Bertschler 08680da448 Merge "Integrating suggested app by handling new status flags for shortcut items." into ub-launcher3-dorval-polish2 2017-08-25 21:37:51 +00:00
TreeHugger Robot 1affe9efea Merge "Adding scrim in all-apps scrim" into ub-launcher3-dorval-polish2 2017-08-25 17:35:54 +00:00
Jon Miranda bfaa4a4edc Hides text on ButtonDropTargets if any of them are ellipsized.
This can happen on small devices or on devices where Font/Display size
is enlarged and when Developer Options is turned on when all three
options {Uninstall, Delete, App Info} are shown at once.

Bug: 64391860
Change-Id: If355d28087d53148114eb586efb3c26f158b3713
2017-08-24 16:27:30 -07:00
Sunny Goyal 81a70e5dc2 Adding scrim in all-apps scrim
Bug: 64692527
Change-Id: Ib8262ad0cc3c95cd419eb9fa1dee3bbbc2d25a27
2017-08-24 15:11:18 -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
Jon Miranda a11380d370 Fix bug where mw landscape cell size is calculated incorretly.
The problem is that the height we pass to the multi-window DeviceProfile
includes the top insets, so we tell widgets that the cell size height is
larger than it actually is.

We use Display#getSize to pass in the size of the window in multi-window
mode. The docs say "the returned size may be adjusted to exclude
certain system decor elememts."

To ensure that system decor elements is always excluded, we take the
minimum sizes of the main profile and it's multi-window variant -- since
the multi-window DeviceProfile sizes are never going to be larger.

Bug: 64851168
Change-Id: I274f838c54f3d01d43dc51e0ff921a6124e12cf7
2017-08-24 11:30:03 -07:00
Hyunyoung Song 67e6d18ee9 Merge "Remove flicker when multiple apps are added/removed/updated on widget tray" into ub-launcher3-dorval-polish2 2017-08-24 07:40:01 +00:00
Hyunyoung Song 8e5464b544 Remove flicker when multiple apps are added/removed/updated on widget tray
Bug: 36718342

1.The flicker was also happening partially because notifyWidgetProviderChanged
callback also made the entire widget list to update in addition to
packageManager update.

2. Now that adapter calls notifyItemInserted, Removed, the recycler
view uses it's internal animation to elegantly move items or insert
them. (added benefit!)

3. Added tests for WidgetsListAdapterTest

$ adb shell am instrument -w -e class com.android.launcher3.widget.WidgetsListAdapterTest com.google.android.apps.nexuslauncher.tests/android.support.test.runner.AndroidJUnitRunner

com.android.launcher3.widget.WidgetsListAdapterTest:.

Time: 0.337

OK (6 test)

Change-Id: I0818d546532631bf889fae560118decff64ec5a4
Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
2017-08-23 18:04:37 -07:00
Sunny Goyal 988ad27be4 Applying the widget resize changes even when the activity is destroyed
in the middle of the resize interaction.

Bug: 64759853
Change-Id: I65ab7df0426f36fe1121bf055e38fc722822b0f4
2017-08-23 21:19:42 +00:00