Commit Graph

10303 Commits

Author SHA1 Message Date
Baligh Uddin fc4faab9cb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 28632138
Change-Id: I750d21dcd55652032c4a2fb02351accae3ceff8c
2016-05-06 09:26:23 -07:00
Tony Wickham 8dd2409923 Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
In battery saver mode, animations skip directly to the final values.
For LogDecelerateInterpolator, however, an input of 1f outputs an
interpolated 0.99999994. This meant that the FirstFrameAnimatorHelper
didn't realize that this was the last frame, and messed things up.
Since any interpolator should return 1 on an input of 1, we just
short-circuit in that case for the log interpolators.

Bug: 25666809
Change-Id: I60527e3758cea383fbcf50acb95460a7bd9ab43c
2016-05-03 17:00:20 -07:00
Sunny Goyal 0042e3a5e7 Revert "Calling start/stop listening in onStart/onStop"
This reverts commit 23ac9cb3e1.

Bug: 28421447
Change-Id: Id04e7b7827d8b897b7c7992705d36f9d83a13320
(cherry picked from commit 7e5d5fc3c6)
2016-04-28 22:43:19 +00:00
Rubin Xu 3ee9080fb4 Fix incorrect icon greying on pre-N system
The flag we check for package suspension is reused by a hidden constant
prior to N, so the flag should only be checked on N or later system.

Bug: 28390176
Change-Id: Ia28f62991cc2cd1b5d2cc27a5f11f7edca0ba02b
2016-04-27 20:33:53 +01:00
Sunny Goyal e81ba18a03 Setting stable layout flags on the launcher, so that the instets do not
change for launcher when going in/out of another app

Bug: 27600678
Change-Id: Ic873faba99c539025769d911bc7b0a4fed629cd7
(cherry picked from commit 784f9c3996)
2016-04-27 17:20:24 +00:00
Sunny Goyal 2afb636180 Showing a toast when changing wallaper is disabled
Bug: 27940102
Change-Id: I373093d9b85dca356aaa8798931d5315981fd74c
2016-04-21 15:16:42 -07:00
Hyunyoung Song bcc53286c2 Fix recyclerview res path
Manually cherry picking ag/943086

Change-Id: I37b75a04e3fff61b4bd42625a060c41e0fe7e85d
2016-04-19 22:24:40 -07:00
Sunny Goyal fceb9ff0f5 Passing the full image and crop hint when setting the wallpaper
Bug: 25454157
Change-Id: Ia0ae7dd4963b72cd7902622847deedfcb5a0eca2
2016-04-18 16:36:37 -07:00
Tony Wickham 0a197dbbf6 Prompt to set URI wallpapers on lock screen (missed before).
Change-Id: I5328a9861ce2843aba36ecad172eb0e364a816a0
2016-04-13 15:04:30 -07:00
Sunny Goyal ddd6d96d5f Fixing wrong grid size definitions
Bug: 27958565
Change-Id: Icabc651552bbf6483fedbaeb52745c48d418f9ea
(cherry picked from commit 1ab22630a0)
2016-04-13 17:36:45 +00:00
Sunny Goyal 4e04695cde Merge "Giving proper workspace description when the launcher is not loaded." into ub-launcher3-burnaby-nyc 2016-04-13 00:44:18 +00:00
Adam Cohen f47e5ceafd [DO NOT MERGE] Address some spacing issues in all apps related to new support library
am: d797327  -s ours

* commit 'd797327b79c5ded53f698201af5abb7d779ddfa9':
  [DO NOT MERGE] Address some spacing issues in all apps related to new support library

Change-Id: I8c38d1c542f1143dd7c9f330795229b4a03c7ac8
2016-04-12 23:55:03 +00:00
Adam Cohen 9c6f32c2aa [DO NOT MERGE] Address some spacing issues in all apps related to new support library
issue 27581978

Change-Id: If7a1ea19aa586bb3de6bde960b16e59f86061227
(cherry picked from commit d797327b79)
2016-04-12 23:46:16 +00:00
Sunny Goyal 850a943133 Giving proper workspace description when the launcher is not loaded.
Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1

Conflicts:
	src/com/android/launcher3/Workspace.java
2016-04-12 16:39:10 -07:00
Hyunyoung Song 1124f2017a Merge "Talkback: return correct row index inside AllApps b/27108673 b/26546781" into ub-launcher3-burnaby-nyc 2016-04-12 23:17:31 +00:00
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 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 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
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
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
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 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
Hyunyoung Song 04907eea71 [DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method
mFixedSearchBarBounds is no longer used.

b/25255451

Change-Id: I3e2f7511c7a418f211a8b17a62b98f2736dfc91d
2016-04-04 16:23:18 -07:00
Hyunyoung Song f4c0f7d250 [DO NOT MERGE] Fix widget tray clipping due to wrong padding
b/27380335
padding was set wrong when the widget view hierarchy was
being refactored in this CL: ag/870011

Change-Id: I003634acded2bbe204098c0e6fefff13d154b5d6
(cherry picked from commit 58e61ac216)
2016-03-14 18:03:25 +00:00
Hyunyoung Song 3650019856 Trim down the logging class
b/26494415

Change-Id: I9035f515e4eb54af8f8ad2f29ab294d2ac9760e8
2016-03-04 12:00:25 -08:00