Commit Graph

49925 Commits

Author SHA1 Message Date
Hyunyoung Song f9dc857a0e Make com.android.launcher3.action.LAUNCH intent explicit
b/27967359

Change-Id: I355ffc0af07d5bddcf87d41cf42bead9d5c824dc
2016-04-08 10:55:50 -07:00
Sunny Goyal 90f995521e Fixing debug log
Change-Id: I85c1f7707a3ea9cae2701aa781b74d758602f643
(cherry picked from commit 17763cb1d2)
2016-04-08 17:53:54 +00:00
Sunny Goyal 239b7c0db2 Merge "Changing the scale factor for square icons" into ub-launcher3-calgary
am: e7217a5

* commit 'e7217a5329fab3a8974d9bd9b8f096ad01ffef46':
  Changing the scale factor for square icons

Change-Id: If73405ec99923dddd6877c11ccd068874ff5dc9c
2016-04-07 23:55:55 +00:00
Sunny Goyal e7217a5329 Merge "Changing the scale factor for square icons" into ub-launcher3-calgary 2016-04-07 23:47:52 +00:00
Sunny Goyal 95b9027d77 Merge "Revert "Updating current page when changing the frescroll mode"" into ub-launcher3-calgary
am: e1a4811

* commit 'e1a48115de7ec97d0f013151f1a2e6a24196b4fa':
  Revert "Updating current page when changing the frescroll mode"

Change-Id: I5c135e0b184387844a32424892b01946bce3cdbe
2016-04-07 23:40:30 +00:00
Sunny Goyal e1a48115de Merge "Revert "Updating current page when changing the frescroll mode"" into ub-launcher3-calgary 2016-04-07 23:28:34 +00:00
Sunny Goyal 8682116e2d Changing the scale factor for square icons
Bug: 18245189
Change-Id: Iab0074c76083480a2a7316f5563fc48154de6355
2016-04-07 16:26:27 -07:00
Rubin Xu e7e7fc6995 Listen on new broadcasts for profile changes.
The change is due to API review comments on the platform side.

Bug: 27532254
Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
2016-04-07 16:06:28 -07:00
Sunny Goyal 194cf5061a No need to differentiate package event into app or updated based on
a package is being updated or not

Package update handling is a super set of package add handling  which
also updates the all-apps and package disabled state.
This also prevents addtion of a home screen icon when a managed profile
app on SD card become available.

Bug: 27877926
Change-Id: I9264e422fd30b94ce6ebb2e5adea820b3cda3063
(cherry picked from commit 144154d435)
2016-04-07 23:03:29 +00:00
Sunny Goyal 16affbdf30 Embedding the icon pixel size in the cache DB version.
This causes the cache to get reset when the icon size changes,
for eg, in case of display scale changes

Bug: 27701193
Change-Id: Ib11144757a93cb50fb233d855902c0b2c15afbed
2016-04-07 16:01:39 -07:00
Sunny Goyal 20adc79a90 Instead of reloading the launcher, updating items dynamically when
Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
2016-04-07 15:56:11 -07:00
Sunny Goyal 97909124a2 Fixing model being updated on UI thread
> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08

Conflicts:
	src/com/android/launcher3/DragController.java
2016-04-07 15:54:52 -07:00
Sunny Goyal 1cfd40c077 Fixing wrong preference file name in LauncherFiles
Bug: 27778623
Change-Id: I28aa6698d3caa1fc11b2e8df0733143865f9b408
(cherry picked from commit 8a6edce064)
2016-04-07 22:49:26 +00:00
Sunny Goyal 1024a80f2c Changing the widget loading strategy
Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
2016-04-07 15:44:04 -07:00
Sunny Goyal 58b53b5dff Preserving the homescreen rotation setting on a tablet, when the display is scaled
Bug: 27040652
Change-Id: I07f5e02443379ac5b877f72d33cedf4f2feca926

Conflicts:
	src/com/android/launcher3/Utilities.java
2016-04-07 15:30:35 -07:00
Sunny Goyal 1e41c08fa3 Fixing gradle and some tests
Change-Id: Ied44ab475a30058f19387e843ce113b3028c1bd5
2016-04-07 15:21:29 -07:00
Sunny Goyal 08db27c9f7 Adding support for migrating the grid between any two valid screens sizes.
The grid is migrated in steps where each step consists of at max one column change and at max one row change.
Adding some unit tests for GridMigrationLogic

Bug: 25958224
Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
2016-04-07 15:17:33 -07:00
Sunny Goyal adc13395e0 Extending the grid migration logic to handle density changes
For hotseat migratino, we simply drop the items with least weight
If the workspace row/column decreases by 2 or more, we clear the whole workspace

Bug: 25958224
Change-Id: I7131b955023d185ed10955f593184b9238546dc8
2016-04-07 14:50:58 -07:00
Sunny Goyal 9f44d7dc3a Revert "Updating current page when changing the frescroll mode"
This reverts commit debf81470d.

Change-Id: Ib5b60c21be2d112c6c6e453168cb5bf01a7bd971
2016-04-07 20:06:54 +00:00
Sunny Goyal dfeaa9a99e Adding a check for NYC in utilities
Change-Id: I37ec2b571374cc093b73032645fd36e3dff805b2
2016-04-07 12:56:50 -07:00
Kenny Guy e0b655e845 Respond to managed profile availabilty Intents.
Grey out applications when managed profile is
not available.

Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
(cherry picked from commit ff05f4375d)
2016-04-07 19:41:52 +00:00
Kenny Guy 82fdb81d63 Grey out suspended applications.
Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
(cherry picked from commit 44cba69638)
2016-04-07 19:39:58 +00:00
Sunny Goyal 74bc04616b Fixing wrong grid size definitions
am: 1ab2263

* commit '1ab22630a0c1e16873eb49d0021e0f3dbec4b0ba':
  Fixing wrong grid size definitions

Change-Id: Iab0288528ec4bea2bc332315b85dc04dddd8f051
2016-04-07 19:35:49 +00:00
Sunny Goyal 1ab22630a0 Fixing wrong grid size definitions
Bug: 27958565
Change-Id: Icabc651552bbf6483fedbaeb52745c48d418f9ea
2016-04-07 12:21:26 -07:00
Sunny Goyal 23ac9cb3e1 Calling start/stop listening in onStart/onStop
AppWidgetHost in N was changed to make start/stop lisenting calls
light weight, which allows launcher to avoid getting unnecessary
updates when its not visible

Bug: 23892701
Change-Id: I0ca6e02400992bc4e0359e45a3d66b9252751402
2016-04-07 12:17:18 -07:00
Sunny Goyal d09c37052e Removing dependency on getApplicationInfo method added in N
This method is goiing away. We don't need this method anyway
since LauncherActivityInfo already has the information

Change-Id: Ic6afa1df14958b894925d730e01a2e2d2a6fb98c
2016-04-07 11:38:10 -07:00
Sunny Goyal 4ac17c04bb Merge "Updating current page when changing the frescroll mode" into ub-launcher3-calgary
am: b8b070c

* commit 'b8b070c2dfb27d9ba168c45dd5503e89035a1139':
  Updating current page when changing the frescroll mode

Change-Id: Id9e9f799d4296d5895e01a702c2edc26bc583f27
2016-04-07 02:15:24 +00:00
Sunny Goyal b8b070c2df Merge "Updating current page when changing the frescroll mode" into ub-launcher3-calgary 2016-04-07 02:09:38 +00:00
Sunny Goyal debf81470d Updating current page when changing the frescroll mode
Bug: 28054048
Change-Id: I081db915445b60f96607d4a0c30ffc8ab476fe24
2016-04-06 18:42:31 -07:00
Tony Wickham 549ccf8d0a Merge "Stop animating highlighted page border in spring-loaded mode." into ub-launcher3-calgary
am: 5b9a6e3

* commit '5b9a6e3f399e645bfcd7e5a1cd74753309fad1c8':
  Stop animating highlighted page border in spring-loaded mode.

Change-Id: I4a390976250ad198db1fccf4bd68802e84701a11
2016-04-07 01:32:30 +00:00
Tony Wickham 5b9a6e3f39 Merge "Stop animating highlighted page border in spring-loaded mode." into ub-launcher3-calgary 2016-04-07 01:24:14 +00:00
Tony Wickham 2066619511 Merge "Add velocity threshold so that fast pinches (flings) are detected." into ub-launcher3-calgary
am: 3b21a97

* commit '3b21a970795e32de46a92de227e91b9efa1f6478':
  Add velocity threshold so that fast pinches (flings) are detected.

Change-Id: I18a33c980b0087e0e2bc38ea70beae737d44368d
2016-04-06 21:34:12 +00:00
Tony Wickham 3b21a97079 Merge "Add velocity threshold so that fast pinches (flings) are detected." into ub-launcher3-calgary 2016-04-06 21:28:46 +00:00
Tony Wickham 012734d7c4 Add velocity threshold so that fast pinches (flings) are detected.
Bug: 27676309
Change-Id: Id3ba05c67abac8847fcff22532ea9da9ef10a5ae
2016-04-06 14:13:29 -07:00
Sunny Goyal aef8872dfa Fixing folder icon not getting redrawn when the contents change
am: c52ba71

* commit 'c52ba710053e4c6927937dd1a26d1abe06b6fa99':
  Fixing folder icon not getting redrawn when the contents change

Change-Id: I61bca05bd06a0bee248089d7cac11f9b02154cad
2016-04-06 19:51:30 +00:00
Sunny Goyal c52ba71005 Fixing folder icon not getting redrawn when the contents change
> Removing parent from ItemOperator as inconsistant values were
being passed in workspace and folderPagedView
> Fixing itemChanged causing multiple redraws, by passing a
'animate' parameter to explicitely request animation

Bug:27740161
Bug:28015426

Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
2016-04-06 12:46:36 -07:00
Tony Wickham efe03f54ae Merge "Disable pinch gesture when accessibility is enabled." into ub-launcher3-calgary
am: e316a7f

* commit 'e316a7fa4bf55209712c49d92f98f65ff378dc4a':
  Disable pinch gesture when accessibility is enabled.

Change-Id: Ibeb910d6d0f1e19ce67f3af7d237351b628c4839
2016-04-06 19:39:58 +00:00
Sunny Goyal 09168a9f3d Merge "Deleting resources added due to merge conflicts" into ub-launcher3-calgary
am: 4a754f8

* commit '4a754f821bf1cf4434ee48a2783d79b421bda837':
  Deleting resources added due to merge conflicts

Change-Id: If24fd61b906d000e2a816de594c884a733423f16
2016-04-06 19:39:57 +00:00
Tony Wickham e316a7fa4b Merge "Disable pinch gesture when accessibility is enabled." into ub-launcher3-calgary 2016-04-06 19:36:01 +00:00
Sunny Goyal 4a754f821b Merge "Deleting resources added due to merge conflicts" into ub-launcher3-calgary 2016-04-06 19:31:40 +00:00
Sunny Goyal b9f3d025d8 Deleting resources added due to merge conflicts
Change-Id: I26e46e0470c6b2a33a633b69a5f636b30a61dbc7
2016-04-06 12:29:33 -07:00
Tony Wickham e22172537b Disable pinch gesture when accessibility is enabled.
Bug: 27676309
Change-Id: Iba0f04693c494f258ef21d740ee933f9c32a7674
2016-04-06 11:52:42 -07:00
Sunny Goyal c79e640b5c Removing some wallpaper dependency
am: b0e3780

* commit 'b0e378000fac0d4a2d5a75d887f5a6733bdab900':
  Removing some wallpaper dependency

Change-Id: Id09cffeee436e6e9ed6d6010a3cee00676619f0c
2016-04-06 01:09:36 +00:00
Sunny Goyal b0e378000f Removing some wallpaper dependency
Change-Id: I3f88a76df40c64678e297f217d703ca296f2d5cd
2016-04-05 18:02:13 -07:00
Sunny Goyal 70b485b234 Merge "Fixing bug where folders on the first screen and hotseat are not registered by the Launcher if there are folders on other screens" into ub-launcher3-calgary
am: e1f1c34

* commit 'e1f1c34c098b80d45934701f9ee7d499ee7bfcc2':
  Fixing bug where folders on the first screen and hotseat are not registered by the Launcher if there are folders on other screens

Change-Id: Ifc8711094ebf84a4d9ce21c401936cc9da2cadce
2016-04-06 00:56:10 +00:00
Sunny Goyal e1f1c34c09 Merge "Fixing bug where folders on the first screen and hotseat are not registered by the Launcher if there are folders on other screens" into ub-launcher3-calgary 2016-04-06 00:49:22 +00:00
Rubin Xu 62f92c0350 Merge "Listen on new broadcasts for profile changes." into ub-launcher3-calgary
am: b4c4dce

* commit 'b4c4dceb83e098392930a3daa934dfb8fbf55db8':
  Listen on new broadcasts for profile changes.

Change-Id: Iaea92c2e1d843f948f1d1ae1bcacbc2f3b95e241
2016-04-05 16:34:11 +00:00
Rubin Xu b4c4dceb83 Merge "Listen on new broadcasts for profile changes." into ub-launcher3-calgary 2016-04-05 16:28:16 +00:00
Sunny Goyal b2662d5a45 Fixing wrong method name
am: e27815e

* commit 'e27815e33f6b5764872c09f3ce7bb5c5630536ba':
  Fixing wrong method name

Change-Id: Icffa08a67e3ecb40265bbaf70eba61d6d2621aec
2016-04-05 00:54:59 +00:00
Sunny Goyal e27815e33f Fixing wrong method name
Change-Id: Idabe5d8ee41f31d30dcbe03aa626f7b39f713c14
2016-04-04 17:51:04 -07:00