Commit Graph

16456 Commits

Author SHA1 Message Date
Mario Bertschler 313fc8aa1f Switching to dark color in color extraction algorithm.
Bug: 62903659
Change-Id: Ibd65cb75ee6d74bde20e35d570a505ec8f4b4617
2017-06-26 11:10:18 -07:00
Tony Wickham 093c3ac7c3 Add dark widgets theme
Bug: 62907264
Change-Id: I9831e071eab9a746d1aacab7d023371cc4a631ef
2017-06-26 17:50:29 +00:00
Jon Miranda cb73920b23 Move inner classes out of FolderIcon.
The goal is to eventually move all of the PreviewBackground and
Preview Item drawing out of the FolderIcon class.

Bug: 36022592

Change-Id: Ie0552bb4ca8a7e232c1c454a23558940e9394a14
2017-06-25 21:29:35 -07:00
Jon Miranda 72b5fd186e Grid change polish bugs.
- Folder icons were too small in landscape.
- Folders can now be 16dp away from the edge
  (used to be 64dp which resulted in super small folders)
- Decrease page spacing back to 8dp
- Decrease PreviewBackground accept scale factor since
  hotseat is now generally smaller.

Bug: 37014334
Bug: 37015359
Change-Id: Icbb53d34136bfdb93796d48f7379da6b9e214345
2017-06-25 18:15:29 -07:00
Rajeev Kumar 374d170f96 Merge "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" into ub-launcher3-dorval-polish 2017-06-23 23:40:15 +00:00
Rajeev Kumar cee3d8da28 Merge "Get rid of an unused import from AppsSearchContainerLayout class." into ub-launcher3-dorval-polish 2017-06-23 23:28:29 +00: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
Rajeev Kumar 151c0550dc Get rid of an unused import from AppsSearchContainerLayout class.
Change-Id: Ia6d321ee3405dd82542a102489c1dba94f470bb0
2017-06-23 15:14:45 -07:00
TreeHugger Robot 48f1135a6d Merge "Fixing two different implementations for animating text alpha" into ub-launcher3-dorval-polish 2017-06-23 19:10:41 +00:00
TreeHugger Robot 6828cbb751 Merge "Landscape grid changes for Workspace/All Apps." into ub-launcher3-dorval-polish 2017-06-23 18:59:12 +00:00
Jon Miranda b28c4fcf35 Landscape grid changes for Workspace/All Apps.
This is the just first CL to get eyes on the changes.
Next CL will update the All Apps to be full width.

Bug: 37015359
Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
2017-06-23 11:47:48 -07:00
Sunny Goyal 4e5a878bc4 Fixing two different implementations for animating text alpha
The animator in BubbleTextView maintains an internal state which was getting
invalidated by the FolderAnimator.

Change-Id: I53885fe8f1773ca62fe59f1712056f02ff9a749f
2017-06-23 11:02:02 -07:00
Sunny Goyal 9314b7c01d Separating double shadow logic for BubbleTextView in a separate subclass
This allows better customization and reuse of the double shadow logic and simplified
various attribute management

Change-Id: I5e277d8399756385452d8bb8c0a0107234a76d34
2017-06-23 10:37:25 -07:00
Rajeev Kumar a9d721df78 Merge "1. Replace use of java.util.HashSet with android.util.ArraySet in NotificationListener. 2. Make few instance variable final. 3. Fix an unchecked cast." into ub-launcher3-dorval-polish 2017-06-23 01:53:44 +00:00
TreeHugger Robot 8a87856d3a Merge "Move PreviewBackground into its own class file." into ub-launcher3-dorval-polish 2017-06-23 01:45:02 +00:00
Rajeev Kumar 541e13c265 1. Replace use of java.util.HashSet with android.util.ArraySet in
NotificationListener.
2. Make few instance variable final.
3. Fix an unchecked cast.

Bug: 62466540
Change-Id: I62352c9c9b38f5eaadbbb39c13dfe1411048109d
2017-06-22 18:43:25 -07:00
Jon Miranda a0233f72be Move PreviewBackground into its own class file.
This is done in preparation for new PreviewBackground animation
where we will be animating in the first page preview items when
closing the Folder from a non-first page.

Bug: 36022592
Bug: 35064148
Change-Id: Id4d54da16ddfa852ca639a2dc8d328307d4d443a
2017-06-22 18:34:45 -07:00
TreeHugger Robot 9e83ba5a5b Merge "Adding support in IconProvider for loading different icons for UI and model use" into ub-launcher3-dorval-polish 2017-06-23 00:21:02 +00:00
Sunny Goyal 1da138903b Adding support in IconProvider for loading different icons for UI and model use
Bug: 62900800
Change-Id: I86e2d77efc7e5fc85b59cf18e634546d098d138f
2017-06-22 17:13:46 -07:00
Rajeev Kumar 226b26e73e Merge "1. Replace use of java.util.HashMap with android.util.ArrayMap in SwipeHelper class 2. Make few instance variables final Bug: 62466540" into ub-launcher3-dorval-polish 2017-06-22 22:40:53 +00:00
Rajeev Kumar 1e10535c16 1. Replace use of java.util.HashMap with android.util.ArrayMap in
SwipeHelper class
2. Make few instance variables final
Bug: 62466540

Change-Id: I6cef170c770f4da8574205ef4f4f43edbfdbbc58
2017-06-22 13:17:31 -07:00
Mario Bertschler 293fba031e Merge "PopupContainerWithArrow accepting bubbletextview without icon being set." into ub-launcher3-dorval-polish 2017-06-22 19:34:59 +00:00
TreeHugger Robot 3fede16f22 Merge "Do not apply legacy treatment on shortcuts Bug: 62617041" into ub-launcher3-dorval-polish 2017-06-22 19:21:27 +00:00
TreeHugger Robot f3b1c0f759 Merge "Disable old ColorExtractionService if feature flag for LAUNCHER3_GRADIENT_ALL_APPS is enabled" into ub-launcher3-dorval-polish 2017-06-22 19:21:23 +00:00
Mario Bertschler a3f91c9752 PopupContainerWithArrow accepting bubbletextview without icon being set.
Change-Id: I5f58c339c094b4a88adf27c2ecaa01ba052b2285
2017-06-22 12:00:07 -07:00
Hyunyoung Song d84f771f75 Do not apply legacy treatment on shortcuts
Bug: 62617041

Change-Id: I56a04536fe1bcba9912c5da3ce5a9c9b75bc3506
2017-06-22 11:49:33 -07:00
Mario Bertschler 46d73d69f0 Disable old ColorExtractionService if feature flag for
LAUNCHER3_GRADIENT_ALL_APPS is enabled

Change-Id: I1614897d51ac79293e8b34eee25f212c9ccf4bd2
2017-06-22 11:36:57 -07:00
TreeHugger Robot 12461a16c9 Merge "Fade out hotseat more aggressively during all apps transition" into ub-launcher3-dorval-polish 2017-06-22 18:18:34 +00:00
Adam Cohen 0d1fe13a50 Fade out hotseat more aggressively during all apps transition
Bug 62892137

Change-Id: I711bdab58389cdc2d0a66442d9aaa6107a3d3cc9
2017-06-22 11:06:20 -07:00
TreeHugger Robot ce080e8fc0 Merge "Fixing PinItemActivity not getting dismissed when starting drag-and-drop in multi-window mode" into ub-launcher3-dorval-polish 2017-06-22 17:53:24 +00:00
Sunny Goyal 80fa41f00f Fixing PinItemActivity not getting dismissed when starting drag-and-drop in multi-window mode
Change-Id: Ic5a74dab7cc374efcd32d4c73faa9eb28e9327a4
2017-06-22 10:46:51 -07:00
Sunny Goyal b9465eec45 Merge "Setting the callback for previewItems to folderIcon. This allows the FolderIcon to get updated without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls" into ub-launcher3-dorval-polish 2017-06-22 17:44:53 +00:00
Mario Bertschler 451dc5df32 Merge "Removing view.isInTouchMode() because plaform returns false when using a mouse on long click." into ub-launcher3-dorval-polish 2017-06-22 17:30:56 +00:00
Sunny Goyal 828b11e5a9 Setting the callback for previewItems to folderIcon. This allows the FolderIcon to get updated
without going through the child'draw pass.
Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls

Bug: 62900800
Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
2017-06-22 10:25:43 -07:00
Rajeev Kumar 0d52bca39e Merge "1. Replace use of java.util.HashMap with android.util.ArrayMap in FolderPagedView class 2. Get rid of explicit type arguments that can be inferred" into ub-launcher3-dorval-polish 2017-06-22 17:19:53 +00:00
Rajeev Kumar 50db3ad437 Merge "1. Replace use of java.util.HashMap with android.util.ArrayMap in LauncherAppsCompatVL class. 2. Fix Synchronization on a non-final field 'mCallbacks'. 3. Add missing @Override to the overriden methods. 4. Add missing @NonNull to the method parameters. Bug: 62466540" into ub-launcher3-dorval-polish 2017-06-22 17:19:24 +00:00
Rajeev Kumar 2ed2bed963 Merge "1. Get rid of unnecessary ; from VerticalPullDetector 2. Make an instance variable final" into ub-launcher3-dorval-polish 2017-06-22 17:18:51 +00:00
TreeHugger Robot edfc0192ce Merge "Properly desaturating the dragview if the icon is disabled" into ub-launcher3-dorval-polish 2017-06-22 16:59:42 +00:00
Mario Bertschler cd04c89f89 Removing view.isInTouchMode() because plaform returns false when
using a mouse on long click.

Bug: 38204847

Change-Id: I5b10e8251f4f0a7b148c0404d5939a0fa8325a46
2017-06-22 09:29:46 -07:00
Sunny Goyal 2814112998 Properly desaturating the dragview if the icon is disabled
Change-Id: Ic53078750fab013ed07999c6e9a6bf5d9b4c2554
2017-06-21 17:29:04 -07:00
TreeHugger Robot bef710114c Merge "Removing some support lib dependencies" into ub-launcher3-dorval-polish 2017-06-22 00:22:58 +00:00
TreeHugger Robot fa544965f3 Merge "Set mDragInProcess to false in onDragEnd." into ub-launcher3-dorval-polish 2017-06-21 23:33:32 +00:00
Sunny Goyal 318f567a84 Prevent recursive draw-invalidate cycle when drawing folder
Change-Id: I4d3e680ee0cd1af9da997ac92c505ca38ee4e810
2017-06-21 16:11:17 -07:00
Sunny Goyal a2fde430b5 Enabling spring effect during drag-n-drop on deep shortcuts
Change-Id: Iac128e850c41c0946d28e1ee8824ce8a62b4c395
2017-06-21 14:42:38 -07:00
Sunny Goyal 03a38a669c Fixing scale calculation for spring effect on drag view
Bug: 62823315
> Using the scale value from IconNormalizer
> Using the badge from packageManager (similar to launcher icons)

Change-Id: I7cc65be8619281986c2c26a66c6de40636f12256
2017-06-21 20:36:45 +00:00
Jon Miranda 544946ae80 Set mDragInProcess to false in onDragEnd.
Before this change, it was possible to touch (not drag and drop)
a Folder and have it open to a non-first page.

With this change, the Folder always opens to the first page on touch.
For drag and drop, it will still open to the last page.

Bug: 36022592
Change-Id: Ib0417eaf7e4866e874369b3b35248231a54cba06
2017-06-21 12:00:19 -07:00
Sunny Goyal 9abbd86e29 Merge "Adding utility method to find an app from a component key" into ub-launcher3-dorval-polish 2017-06-21 18:05:18 +00:00
TreeHugger Robot 6fa699902f Merge "Adaptive icon fetched from icon provider and/or work profile icon should not change during DnD Bug: 62806605 Bug: 62823315" into ub-launcher3-dorval-polish 2017-06-21 17:43:52 +00:00
Hyunyoung Song 654bf3141b Adaptive icon fetched from icon provider and/or work profile icon should not change during DnD
Bug: 62806605
Bug: 62823315

Change-Id: I2bf7c64df101e1293a2b4b416333e36244406a62
2017-06-21 10:38:11 -07:00
Sunny Goyal d36ed7d982 Adding utility method to find an app from a component key
Change-Id: I445b512f29a0a45910c523f2f905c0a9e3c241f1
2017-06-20 21:03:36 -07:00