Commit Graph

78507 Commits

Author SHA1 Message Date
Adam Cohen d797327b79 [DO NOT MERGE] Address some spacing issues in all apps related to new support library
issue 27581978

Change-Id: If7a1ea19aa586bb3de6bde960b16e59f86061227
2016-04-12 14:22:11 -07:00
Hyunyoung Song d61db3f9fe Talkback: return correct row index inside AllApps
b/27108673
b/26546781

Change-Id: If8ed40986efdecb2cd994d011777588a97457326
2016-04-12 12:51:36 -07:00
Sunny Goyal 646020dbe9 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-burnaby-nyc 2016-04-12 19:48:36 +00:00
Tony Wickham db5808fcfd Merge "Add dialog to set Default Wallpaper on lock screen for N+." into ub-launcher3-burnaby-nyc 2016-04-11 23:18:01 +00:00
Tony Wickham b64726e4e9 Add dialog to set Default Wallpaper on lock screen for N+.
Change-Id: I91c77f5751202f9a4b3a922726ab55e354c50b4a
2016-04-11 15:57:24 -07:00
Sunny Goyal 0e74af11d9 [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver am: d435cc0 -s ours
am: 04cdfac  -s ours

* commit '04cdfacaeb5ef086e4f81231417cae82bec4b324':
  [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver

Change-Id: If4c96179ba4b75449b9aac8eba66ee8ed96feacd
2016-04-11 20:44:21 +00:00
Sunny Goyal 04cdfacaeb [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
am: d435cc0  -s ours

* commit 'd435cc070ad72d2e94546d274e29159ee4c21a9a':
  [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver

Change-Id: Ib43865dd5d25c8fbea6b33a309e06eb2c1dcaa2d
2016-04-11 20:39:16 +00:00
Sunny Goyal 5734e6373b [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
am: d435cc0  -s ours

* commit 'd435cc070ad72d2e94546d274e29159ee4c21a9a':
  [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver

Change-Id: I465ad63e4d9be6d82f2c5d0908422976e2779e5a
2016-04-11 20:39:16 +00:00
Sunny Goyal 6fa0c69b27 [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb
(cherry picked from commit d435cc070a)
2016-04-11 20:32:48 +00:00
Sunny Goyal d435cc070a [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb
2016-04-11 13:03:33 -07:00
Tony Wickham b2694f5482 Disable "Set wallpaper" action bar when no tile is selected.
Change-Id: Ia21dfb8248fc607e3f5606f2cac18345cff6f260
2016-04-11 12:01:09 -07:00
Tony Wickham d550eea542 Merge "Prompt users to set wallpaper on lockscreen on N+." into ub-launcher3-burnaby-nyc 2016-04-11 18:59:18 +00:00
Tony Wickham aac9af46c0 Prompt users to set wallpaper on lockscreen on N+.
This CL handles all wallpapers except the default one, which will
be handled in a follow-up CL.

Change-Id: Ib8e4f18fb35b4c1442efb3893df75bf5f4f9b0d5
2016-04-11 11:31:16 -07:00
Sunny Goyal f9e18658a4 Merge "Fixing gradle version comflicts" into ub-launcher3-calgary
am: fdcbe30

* commit 'fdcbe306f13c41b183689a5410dc7ba859ff1a07':
  Fixing gradle version comflicts

Change-Id: I64efc68c3c368fd24da5ffb69dd15eb1742a3fc3
2016-04-09 00:17:01 +00:00
Sunny Goyal fdcbe306f1 Merge "Fixing gradle version comflicts" into ub-launcher3-calgary 2016-04-09 00:12:20 +00:00
Sunny Goyal 15cece99b0 Fixing gradle version comflicts
Change-Id: I6e3b99e2ad67a192e29f9939fc188db81f31d219
2016-04-08 17:11:13 -07:00
Adam Cohen 145f4ff46a Merge "Remove special code path for not animating folder open in power save mode" into ub-launcher3-calgary
am: 2bcffdc

* commit '2bcffdcd851543339f8fe00b2e02164eb9be4a35':
  Remove special code path for not animating folder open in power save mode

Change-Id: I20245ead70af2ddceb1acb3812b9bf553c609aa1
2016-04-09 00:08:34 +00:00
Adam Cohen 2bcffdcd85 Merge "Remove special code path for not animating folder open in power save mode" into ub-launcher3-calgary 2016-04-09 00:03:33 +00:00
Hyunyoung Song a67e9f0339 Fixing a typo from <array> to <string-array> am: 63d093d -s ours
am: 31c2ac6

* commit '31c2ac65e0350990d3e18cd637c6c5fda9ed9a9d':
  Fixing a typo from <array> to <string-array>

Change-Id: Ic6b6ad9ab2585dc3eea62f7f41fe3f3b28e83654
2016-04-08 23:49:55 +00:00
Hyunyoung Song 31c2ac65e0 Fixing a typo from <array> to <string-array>
am: 63d093d  -s ours

* commit '63d093de024a5e1bd26b71bd823df0017d1ec945':
  Fixing a typo from <array> to <string-array>

Change-Id: I0882a178aea95d46e47d73c622c89f8c7015ea94
2016-04-08 23:47:41 +00:00
Hyunyoung Song 1dc305d5ce Make com.android.launcher3.action.LAUNCH intent explicit b/27967359 am: f9dc857 -s ours
am: 99133a3

* commit '99133a34961373eb9a4bf1360eef545bd3af522b':
  Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

Change-Id: Ic841071ae68a1c445fe5da9a8f0a8136bbfd95d8
2016-04-08 23:26:39 +00:00
Adam Cohen 37b2a496eb Remove special code path for not animating folder open in power save mode
-> framework takes care of this
-> stripped unused code

Change-Id: If1941447df5c3145db715971440b80bd754f0bb1
2016-04-08 16:25:08 -07:00
Hyunyoung Song 99133a3496 Make com.android.launcher3.action.LAUNCH intent explicit b/27967359
am: f9dc857  -s ours

* commit 'f9dc857a0e49750fefd88d4201ee74e1b3cfee3d':
  Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

Change-Id: I57fed37996ca1bd5b1d096f55b891aba062575bb
2016-04-08 23:24:27 +00:00
Sunny Goyal fa7a67ebfc 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

Conflicts:
	src/com/android/launcher3/LauncherModel.java
2016-04-08 15:43:16 -07:00
Sunny Goyal 96b6ed77a4 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
(cherry picked from commit 23ac9cb3e1)
2016-04-08 22:34:02 +00:00
Sunny Goyal ca7dac40be Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary
am: 849344b

* commit '849344b2466cce4354581f8d4b1d0e4c0681940d':
  Calling start/stop listening in onStart/onStop

Change-Id: I4b40689c12928040638cb9b90af468cc9ffca0c9
2016-04-08 21:53:51 +00:00
Sunny Goyal 849344b246 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary 2016-04-08 21:45:20 +00:00
Hyunyoung Song 53169865af Fixing a typo from <array> to <string-array>
am: 63d093d

* commit '63d093de024a5e1bd26b71bd823df0017d1ec945':
  Fixing a typo from <array> to <string-array>

Change-Id: I3f7bc583b8706d805f36b70049223653c5d5d807
2016-04-08 21:37:28 +00:00
Hyunyoung Song 63d093de02 Fixing a typo from <array> to <string-array>
Change-Id: Iadbbe59e0ba93a21373056fe6b4af9db7ce39f66
2016-04-08 12:17:25 -07:00
Hyunyoung Song 9e48d0f22b Make com.android.launcher3.action.LAUNCH intent explicit b/27967359
am: f9dc857

* commit 'f9dc857a0e49750fefd88d4201ee74e1b3cfee3d':
  Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

Change-Id: Iad2d0fe4662bae70ea3378fad82739a1df723ff6
2016-04-08 18:07:04 +00:00
Sunny Goyal d96d93ed10 Merge "Removing dependency on getApplicationInfo method added in N" into ub-launcher3-calgary
am: 38ea9ca

* commit '38ea9cac5401b527531575b8e848b76085473910':
  Removing dependency on getApplicationInfo method added in N

Change-Id: Ic97d7fa73a91db7032372d45d9d0ae25ae87af1c
2016-04-08 18:07:04 +00:00
Sunny Goyal 38ea9cac54 Merge "Removing dependency on getApplicationInfo method added in N" into ub-launcher3-calgary 2016-04-08 17:58:30 +00:00
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