Commit Graph

10334 Commits

Author SHA1 Message Date
Rajeev Kumar 9962dbe671 1. Replace use of java.util.HashMap with android.util.ArrayMap in
CellLayout class
2. Get rid of explicit type arguments that can be inferred
3. Make instance variables final
Bug: 62466540

Change-Id: I9acbde25704d62883d174f5573383a2d8b0e1e6e
2017-06-12 12:16:20 -07:00
TreeHugger Robot 97d7491343 Merge "Making some constants accessible" into ub-launcher3-dorval-polish 2017-06-12 19:10:00 +00:00
Rajeev Kumar 0a3169bc66 1. Replace use of java.util.HashMap with android.util.ArrayMap in
ShortcutCache class
2. Get rid of unused constants from ShortcutCache class
3. Make instance variables final

Bug: 62466540
Change-Id: I465da77aa1521790c8359d0f9987d3fc1286b44b
2017-06-12 11:59:47 -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
Sunny Goyal 325b5c7a66 Some theme fixes
> workspaceTextColor was not clearly defined to white and relied on HomeScreenElementTheme
> Not all attributes were defined in sw720dp. Created a interm style to avoid such errors
> Applying proper tint to resize frame
> Fixing shadow colors for homescreen icon

Change-Id: If8441011c968291de50b2fd8d7612ce3d5353b95
2017-06-11 20:24:02 -07:00
Rajeev Kumar 415ff73c84 Replace use of java.util.HashMap with android.util.ArrayMap
in DrawableFactory.

Change-Id: I4ab7f908c3e8768762942ca83f576197dfea66d6
Bug: 62466540
(cherry picked from commit 2d75266c75)
2017-06-09 23:31:59 +00:00
Rajeev Kumar 0590a4c0ce Replace use of java.util.HashMap with android.util.ArrayMap in
AutoInstallsLayout, DefaultLayoutParser, ImportDataTask
classes.

Change-Id: Idcf1f5f020132ddf43751067a38a64bfc088800e
Bug: 62466540
(cherry picked from commit 26453a297b)
2017-06-09 23:30:56 +00:00
Rajeev Kumar 7886c037f8 Replace use of java.util.HashMap with android.util.ArrayMap in
AnimationLayerSet.

Change-Id: I8563d17d97ff36c2b07f73ecb73b0a355780355e
Bug: 62466540
(cherry picked from commit 20ecc54ebd)
2017-06-09 23:25:41 +00:00
Sunny Goyal 1d7ff6fdb7 Making some constants accessible
Change-Id: Id5caff8defe8ccc4a79e1c99b0040abb1750b3e1
2017-06-09 11:24:38 -07:00
Sunny Goyal de57cafbb2 Removing some support lib dependencies
Change-Id: I028ed591cc9cf0af94fe6e09fadcd255f07cdee5
2017-06-09 08:42:49 -07:00
Sunny Goyal 7bffad10cc Fixing Drawable not getting tinted properly if the color is always transparent
Bug: 62457537
Change-Id: I04b8804162b7338f62d3fdabb87dd31ad507ebaa
2017-06-09 08:24:05 -07:00
TreeHugger Robot e6711ceeb6 Merge "Updating the WallpaperManagerCompatVL to use JobSchedular instead of intent service" into ub-launcher3-dorval-polish 2017-06-08 23:29:24 +00:00
Tony Wickham 0ecf5bcfcb resolve merge conflicts of 7092db024 to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.x
Change-Id: I0f9ed3d42fcb04299c3c23d06629f855614c0538
2017-06-08 15:49:07 -07:00
Sunny Goyal 8231596619 Updating the WallpaperManagerCompatVL to use JobSchedular instead of intent service
Bug: 62065291
Change-Id: I5872cea1b110268e9593eeb6397e94ecea1bc03d
2017-06-08 15:39:38 -07:00
Mario Bertschler 6d55202c9b Trigger theme change if supportsDarkText is switching.
Change-Id: Id5ec0429b5fb94d742dfac093263144f71f0d6b7
2017-06-08 15:12:20 -07:00
TreeHugger Robot 1ab7f3bf24 Merge "Use extracted color for scrim in overview mode." into ub-launcher3-dorval-polish 2017-06-08 21:45:48 +00:00
Mario Bertschler ff4f201fad Use extracted color for scrim in overview mode.
Change-Id: Ia24dbf69a64cb0b84da9985a5dd78ca699e7bed1
2017-06-08 14:36:20 -07:00
Tony Wickham 7092db0241 Add support for color extracted notification dots
Changing the badge_color in colors.xml to transparent
will cause them to be color extracted.

When an extracted color is used in the IconPalette, we
desaturate the background. Otherwise we respect the
exact color specified in colors.xml.

Change-Id: Ie82d0c5335fa5f24d4cc47766e4c1719c4916f8b
2017-06-08 21:08:47 +00:00
Sunny Goyal 9d887a2c45 Adding a utility method for getting device prefs
Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
2017-06-08 14:00:54 -07:00
Mario Bertschler 54ba601a99 Dark text support for caret, drop target text and cell layout drop outline
Change-Id: I1bcad657b6e49be6fa93cafe9d8ae304604be34d
2017-06-08 10:54:09 -07:00
Mario Bertschler 9483c6f4ed Merge "Dark color on super light wallpaper support" into ub-launcher3-dorval-polish 2017-06-08 17:45:56 +00:00
Sunny Goyal e86f11fa38 Adding support for loading workspace in the absence of Launcher.
> LoadWorkspace can be called with a LoaderResult which does not bind anything.
> Synchronous bind does not look for a valid page id, and will fallback to the
  current pageId similar to full load flow

Bug: 37616877
Change-Id: If14491dc79c5b85ae1019cc93e4e08759df3387d
2017-06-08 09:39:34 -07:00
TreeHugger Robot 4efee85b75 Merge "Adding utility method to temporarily hide scrollbar" into ub-launcher3-dorval-polish 2017-06-08 01:38:37 +00:00
Jon Miranda 5c83e7cdc5 Refactor and generalize SpringAnimationHandler.
SpringAnimationHandler is only responsible for motion tracking and
updating the list of springs it is handling.

Spring initialization and updates are handled by the AnimationFactory
interface.

This is done in preparation for future CLs where SpringAnimationHandler
will be used in more cases.

Bug: 38349031
Change-Id: I5ebce710cc05e4e88b708ceea5d2cfefbd0eb3d0
2017-06-07 15:45:45 -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 9e4c359054 Adding utility method to temporarily hide scrollbar
Bug: 37616877
Change-Id: I286493746c44ace8958ffd8df24317125b445cf7
2017-06-07 14:05:48 -07:00
TreeHugger Robot 3a5b835297 Merge "Fix bug where physics appears not to run in all apps." into ub-launcher3-dorval-polish 2017-06-07 20:31:03 +00:00
Jon Miranda 75de76f917 Fix bug where physics appears not to run in all apps.
ie. When scrolling up from the bottom, the animation will immediately
start since the last visible item condition is true — and by the time
it reaches the top the spring is done moving.

Bug: 38349031
Change-Id: I344deef47c50b33405345dd3a137ccdb12aeae02
2017-06-07 13:17:19 -07:00
Sunny Goyal d9a2187621 Adding tint support for shadow drawable.
Bug: 37616877
Change-Id: I2ce8d82143238422bccabfa5191ef95e936a713d
2017-06-07 10:41:55 -07:00
TreeHugger Robot f6add46e5e Merge "Generalize findContrastColor() to work for dark backgrounds" into ub-launcher3-dorval-polish 2017-06-07 01:00:52 +00:00
TreeHugger Robot da84e97947 Merge "Removing QsbBlockerView" into ub-launcher3-dorval-polish 2017-06-07 00:47:56 +00:00
Tony Wickham c094a3accb Merge "Don't use CharSequence as notification text" into ub-launcher3-dorval-polish 2017-06-07 00:40:41 +00:00
Tony Wickham 47ab9b1fc5 Generalize findContrastColor() to work for dark backgrounds
Previously it assumed the background was lighter than the foreground.

Bug: 62380473
Change-Id: Icd53750a2f9181890c8b9c62721d07946e115e99
2017-06-06 17:38:57 -07:00
Tony Wickham 15fcdbed07 Merge "Add support for popup dark theme" into ub-launcher3-dorval-polish 2017-06-06 23:55:44 +00: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
Tony Wickham bd867a3d3e Don't use CharSequence as notification text
If a notification changes the color etc. on the CharSequence, then
it overrode our colors. Gmail for instance always makes the second
text dark (apparently), overriding our dark theme.

Change-Id: Ibd8751d70849fd10fd0114af02d382aba1771d4e
2017-06-06 16:35:33 -07:00
Tony Wickham 90038ebab2 Add support for popup dark theme
Bug: 62380473
Change-Id: Ib22e9b82841bf10b7f139638f268f0a878e3c6b9
2017-06-06 16:34:20 -07:00
Hyunyoung Song 9be3585f7f Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables b/62372639" into ub-launcher3-dorval
am: 88082394eb

Change-Id: I7148678d490c55e9a10e672cba839ef8aef9d00a
2017-06-06 21:17:52 +00:00
TreeHugger Robot 88082394eb Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables b/62372639" into ub-launcher3-dorval 2017-06-06 21:13:16 +00:00
TreeHugger Robot 7e6e96dabd Merge "Revert "Decrease jank in all apps physics."" into ub-launcher3-dorval-polish 2017-06-06 21:12:54 +00:00
Jonathan Miranda 6d60532167 Revert "Decrease jank in all apps physics."
This change created an issue where some items appear to not have springs when the device does not have that many apps.

This reverts commit 9d7f2b9e0d.

Change-Id: I8e79cf3f86972fde8184debb6ab4d0f32283a8bd
2017-06-06 20:36:24 +00:00
Hyunyoung Song 9279496e54 Prevent clipping on the top and left side on AdaptiveIconDrawables
b/62372639

Change-Id: I0b2c0daecba2904f3e89f7b0b558d9b10f5dcbf6
2017-06-06 13:21:11 -07:00
TreeHugger Robot 561e53577b Merge "Decrease jank in all apps physics." into ub-launcher3-dorval-polish 2017-06-06 18:14:19 +00:00
Sunny Goyal b434fde427 Moving LoaderTask to a separate class file
Bug: 34112546
Change-Id: I86d93cfb5d3903bfd3878564cbe8b67b64fd8423
2017-06-06 10:47:23 -07:00
Tony Wickham 0540c0606b Merge "Fix visibility of notification footer divider" into ub-launcher3-dorval-polish 2017-06-06 17:29:16 +00:00
TreeHugger Robot 3e61c9d6d0 Merge "Improved color extraction algorithm" into ub-launcher3-dorval-polish 2017-06-06 17:19:12 +00:00
Mario Bertschler 7e3a882a49 Improved color extraction algorithm
Change-Id: I31fdd2a5bc8598dbc8ea5363c995b29057f45997
2017-06-06 10:12:09 -07:00
Tony Wickham 79b176e42c Fix visibility of notification footer divider
Now it is only visible when the notification footer is present,
instead of always being visible.

Change-Id: Ie85ff31918901115cdfe55b36e75aa80b43e7b13
2017-06-05 17:54:45 -07:00
Jon Miranda 9d7f2b9e0d Decrease jank in all apps physics.
By creating the spring in onCreateViewHolder and adding
in onBindViewHolder, we are able to take advantage of
RecyclerView's prefetching optimizations.

Bug: 38349031
Change-Id: Ie445039fd90ca92ae4ce1ff71c57b15f662377a8
2017-06-05 14:27:20 -07:00
TreeHugger Robot 9b9beae02e Merge "Moving LoaderTask static" into ub-launcher3-dorval-polish 2017-06-05 19:49:11 +00:00