Commit Graph

7812 Commits

Author SHA1 Message Date
Sunny Goyal 740e90144a Adding support for dynamically change icon shape for AdaptiveIcons
am: ca18746163

Change-Id: Ic4c14ad1760930735a881926aac8b45efe0cdba0
2017-04-04 19:52:22 +00:00
Sunny Goyal ca18746163 Adding support for dynamically change icon shape for AdaptiveIcons
> This would allow developers to verify their icon designs on different
device configurations
> This settings is only visible when developer settings is enabled

Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a
2017-04-04 12:33:59 -07:00
Tony Wickham 972f20f3e3 Small UI fix for widgets/app info shortcuts
am: 2f54a1625a

Change-Id: I3cdd215d4eca70c684ca88f763caeb829a7ce930
2017-04-03 23:45:48 +00:00
Tony Wickham 2f54a1625a Small UI fix for widgets/app info shortcuts
- Switch order of widgets & more and app info.
- Start binding widgets after starting to update these shortcuts on the
  UI thread, so that they will show up without waiting for the bind
  logic, which can take a while. We already have a callback mechanism
  for enabling widgets & more after widgets are bound, so this was how
  it was supposed to work already.

Change-Id: I5f702f9c0814d30acf6298be309c6dc30727316e
2017-04-03 15:58:50 -07:00
Hyunyoung Song 624e2b0083 Merge "IconNormalizer cleanup" into ub-launcher3-master 2017-04-03 22:24:42 +00:00
Sunny Goyal 9b5a97585f Clearing icon cache due to system app icon changes (without any SDK change)
Bug: 36366450
Change-Id: I23b77bd2bff292dee0e9ec576ba49f03e34628a6
2017-04-03 14:12:52 -07:00
Tony Wickham 7022ba3bf1 Merge "Temporarily use reflection to get notification badge icon type" into ub-launcher3-dorval
am: 39a99e7098

Change-Id: I0fdc617a99d608aef61bd2dd3849467345cfba48
2017-04-03 17:50:25 +00:00
TreeHugger Robot 39a99e7098 Merge "Temporarily use reflection to get notification badge icon type" into ub-launcher3-dorval 2017-04-03 17:44:14 +00:00
Tony Wickham a4736df685 Temporarily use reflection to get notification badge icon type
Bug: 36855196
Change-Id: I408a98140c68f38327a6cd8ce4cc46c5f2fe34e6
2017-04-03 10:18:42 -07:00
Hyunyoung Song 0d834f2a0a IconNormalizer cleanup
> Remove unnecessary member variable

Change-Id: Id497ba86f3a4b968fa467df3791e92ae85495495
2017-04-03 00:26:45 -07:00
TreeHugger Robot 0f9e5321d6 Merge "code cleanup: regarding Favorites debug logging" into ub-launcher3-master 2017-04-01 06:55:12 +00:00
TreeHugger Robot cfbc09aaee Merge "resolve merge conflicts of 26b174659 to ub-launcher3-master" into ub-launcher3-master 2017-03-31 19:41:18 +00:00
Sunny Goyal 67a25e6ff1 Fixing broken build
Change-Id: I9ec4dea773d1ca53522a216028a99fc3ed147f54
2017-03-30 18:45:53 -07:00
Tony ca4e6b4b59 resolve merge conflicts of 26b174659 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ifb24f291b096b979044e5c87ec58c24e9c479728
2017-03-30 18:10:05 -07:00
Sunny Goyal 917f4a44cb Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval
am: 4a907d0f9d

Change-Id: Icd6d070199cd685633ead1301bda9d3e4de698c9
2017-03-30 23:37:42 +00:00
Tony Wickham 26b1746593 Add support for system shortcuts in popup container
- Currently the system shortcuts are just widgets and app info
- As shortcuts, they live in ShortcutsItemView
- They are populated either as icons only (if there are deep
  shortcuts) or as icons + text
- Widgets are disabled until binding them is complete (we request for
  them to be bound on long-press now). We should revisit this.

Bug: 34940468
Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
2017-03-30 16:35:56 -07:00
TreeHugger Robot 4a907d0f9d Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval 2017-03-30 23:32:57 +00:00
Tony Wickham 52f0130a76 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval
am: d73fbb5f97

Change-Id: I5d1bad3ea83e672076dbd3b6f2d80d5149f3921c
2017-03-30 23:26:12 +00:00
Tony Wickham d73fbb5f97 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval 2017-03-30 23:21:39 +00:00
Tony Wickham 50e5165b78 Add WidgetsAndMore bottom sheet
- Contains two rows, one for widgets, and one for "configurable
  shortcuts" that have customization activities
- Extends AbstractFloatingView and uses VerticalPullDetector for
  touch interactions
- No way to show this currently; will add options to popup in followup

Bug: 34940468
Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd
2017-03-30 15:48:53 -07:00
Sunny Goyal 8a39b42cc8 Delay the PinItemRequest#accept() call until the drop animation is finished.
This prevents the caller app from taking over the focus while animation
it running.

Change-Id: I51b6673c59e848c263727502dee90504ed3a2162
2017-03-30 15:31:44 -07:00
Sunny Goyal dd64c3d669 Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval
am: 1188b89dc4

Change-Id: Ib2f0988d944dff201767d5e85686416aa966e96b
2017-03-30 19:27:29 +00:00
TreeHugger Robot 1188b89dc4 Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval 2017-03-30 19:18:01 +00:00
Sunny Goyal 4f209caed5 Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval
am: c5c9cae70d

Change-Id: I0be49e2a81b9ee284230672c368a03f3aaef7916
2017-03-30 19:02:25 +00:00
TreeHugger Robot c5c9cae70d Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval 2017-03-30 18:58:18 +00:00
TreeHugger Robot 8ac5a9058e Merge "Fix folder animations in spring loaded mode + polish." into ub-launcher3-master 2017-03-30 16:01:36 +00:00
Jon Miranda 733abf02d1 Fix folder animations in spring loaded mode + polish.
* Changed interpolators.

Bug: 36653850
Bug: 35064148
Change-Id: I44a732be969582f718d7dc2f82a9f976331821cb
2017-03-29 16:42:02 -07:00
Hyunyoung Song ffd7e76261 Fine tune the circle detection
Decreased the pixel_diff_percentage from 10% to 0.5% by
not counting the pixel_diff around the mask path outline.

Verified that this implementation works well on both Pixel/PixelXL

b/36563706

Change-Id: I8bb488f550a67e2188eff4c4b9e7717e979a741c
2017-03-29 10:25:21 -07:00
Hyunyoung Song 86160f5d5b code cleanup: regarding Favorites debug logging
Change-Id: Ie4d4ffda30ce3b495c2b9fd57ea584d45cc3357d
2017-03-28 14:05:54 -07:00
Mario Bertschler a0b4ac56c1 Merge "Minor Refactoring only: no functional change" into ub-launcher3-master 2017-03-28 19:52:48 +00:00
Mario Bertschler c06af333cb Minor Refactoring only: no functional change
- organizing imports
- remove redundant modifiers on LauncherCallback interface
- fix typos

Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
2017-03-28 12:23:22 -07:00
Jon Miranda fcaff64c93 Resolve merge conflicts of 8eb0de133 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I1e888f6941435befe6f1819de74dea985909ddf0
2017-03-28 12:14:13 -07:00
Jon Miranda bea3a6ba7e Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval
am: 7ef804c917

Change-Id: I1750ccb505a181ec97741f71a4f2293bee7e9df1
2017-03-28 19:06:28 +00:00
TreeHugger Robot 8eb0de1331 Merge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval 2017-03-28 19:02:14 +00:00
TreeHugger Robot 7ef804c917 Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval 2017-03-28 19:00:58 +00:00
Hyunyoung Song 9a8c65e3fa Merge "Fix NPE when DEBUG = false" into ub-launcher3-master 2017-03-28 18:57:50 +00:00
Hyunyoung Song 3d6d4cacdc Fix NPE when DEBUG = false
Change-Id: I1d2fcb7a636369bf5dcabdda1a7ba5b106a0677b
2017-03-28 11:52:26 -07:00
Hyunyoung Song e463ddddc1 Merge "Fix NPE" into ub-launcher3-master 2017-03-28 18:15:17 +00:00
Hyunyoung Song dcd8b5c272 Fix NPE
Change-Id: If816a3cafa42f92ec32cd77ba3a3a902201d9ca4
2017-03-28 11:13:15 -07:00
TreeHugger Robot 9e7f23cf50 Merge "Legacy icon treatment" into ub-launcher3-master 2017-03-28 17:01:05 +00:00
Hyunyoung Song f5a6ee0bfb Legacy icon treatment
- normalize
- circle detection
b/36563706

LEGACY_ICON_TREATMENT can only be turned on IF DISABLE_ICON_NORMALIZATION is false.
This is fine since, when all apps migrated to adaptive icons
we won't need icon normalization AND we won't need legacy icon treatment.


Change-Id: Ic5745a5c521e670ce699f6a74733739cb7986f71
2017-03-28 09:54:57 -07:00
Sunny Goyal 5a81c3806b Fixing multiwindow drag operation during with rotation.
> Finishing activity when rotation preference change. This ensures that
  any prefenrece change is immediately applied instead of waiting for resume
  as the new activity is always started with proper setting.
> Clearing task when starting drag in landscape mode. This ensures that a new
  activity instance is started in this case, which overrides previous locked
  rotation by launcher activity.
> Handling drag request in onCreate and enabling rotation based on it.
> Clearing any request from the launcher intent once the drag operation
  is complete

Bug: 36226746
Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349
2017-03-28 09:36:52 -07:00
TreeHugger Robot 9cbe86deee Merge "Disable drag and drop on Folder when its animating." into ub-launcher3-master 2017-03-27 19:24:23 +00:00
Sunny Goyal 467de1bdb1 Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval
am: 66485063d0

Change-Id: I6b8f4c082e8056eb84aeb49732063bb56917ab70
2017-03-27 18:40:59 +00:00
TreeHugger Robot 66485063d0 Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval 2017-03-27 18:33:52 +00:00
Jon Miranda f0cbf0f8b8 Disable drag and drop on Folder when its animating.
Bug: 36644495
Bug: 35064148
Change-Id: Icd335a773359152fa2680e84f56c3e2eef3551e0
2017-03-27 11:29:19 -07:00
Sunny Goyal eb3ba0fdfb Removing some unnecessary stacktraces from the log
Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45
2017-03-27 11:23:18 -07:00
Tony Wickham d35775ab23 Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval
am: 35d44b4f85

Change-Id: Ia18c4c64d0fe60499bbe02c75afde0e18a2522f5
2017-03-27 17:57:05 +00:00
Tony Wickham c455293fa3 Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval
am: c3dfed43eb

Change-Id: I60bbede53d61f117596e90eb3363a4cb5eac7245
2017-03-27 17:56:55 +00:00
Tony Wickham 35d44b4f85 Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval 2017-03-27 17:53:40 +00:00