Commit Graph

16456 Commits

Author SHA1 Message Date
Sunny Goyal f8a2ba2707 Merge "Revert "Calling start/stop listening in onStart/onStop"" into ub-launcher3-calgary 2016-04-28 22:43:10 +00:00
Sunny Goyal 7e5d5fc3c6 Revert "Calling start/stop listening in onStart/onStop"
This reverts commit 23ac9cb3e1.

Bug: 28421447
Change-Id: Id04e7b7827d8b897b7c7992705d36f9d83a13320
2016-04-28 22:24:50 +00:00
Rubin Xu da3de6ddfe 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
(cherry picked from commit 3ee9080fb4)
2016-04-28 16:55:03 +00:00
Adam Cohen a332ae84c1 Merge "Define a set of methods on Launcher which can be safely called externally" into ub-launcher3-calgary 2016-04-26 18:56:59 +00:00
Adam Cohen 79d90c558f Define a set of methods on Launcher which can be safely called externally
-> The methods are defined by an interface, LauncherExterns, which Launcher
   implements

Change-Id: I61362761f5d90fbc3011ce000944768d5ab29d43
2016-04-26 11:53:43 -07:00
Sunny Goyal 711ee90ae2 Merge "Refactoring package tracking in managed profile heuristic into a separate class" into ub-launcher3-calgary 2016-04-22 20:37:21 +00:00
Sunny Goyal 752848a3b1 Refactoring package tracking in managed profile heuristic into a
separate class

Change-Id: I4f346422e5c7f94f8559942e21aa01b5c96cd8be
2016-04-22 11:50:01 -07:00
Sunny Goyal 1ed6c4adde Showing a toast when changing wallaper is disabled
Bug: 27940102
Change-Id: I373093d9b85dca356aaa8798931d5315981fd74c
(cherry picked from commit 2afb636180)
2016-04-21 23:12:50 +00:00
Sunny Goyal cc8f9e0af7 Removing some deprecated columns.
Removing these columns will ensure that new installs do not
get this column, without affecting the upgrades.

Change-Id: If06edcd2f899f30b5427c07e72a170ccefc32dd6
2016-04-21 08:14:19 -07:00
Hyunyoung Song aa95365427 Refactor UserEventDispatcher (1/2)
b/28269657

Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
2016-04-19 18:30:24 -07:00
Sunny Goyal b660759f52 Merge "Removing Launcher broadcast support from Launcher3" into ub-launcher3-calgary 2016-04-18 20:24:40 +00:00
Sunny Goyal 6388b2c61b Adding some utility methods for thread verification
Change-Id: I3fb6a1b860bba8a6efe413dd2698f972dc3e2506
2016-04-15 18:03:50 -07:00
Sunny Goyal 46ab2276f9 Removing Launcher broadcast support from Launcher3
Change-Id: Ibaf5fe1465d3858b060fc2958194cf60f22a11db
2016-04-15 13:02:04 -07:00
Sunny Goyal 534058492f Removing some deprecated callbacks
Change-Id: I3361383fe19faa64d862bbf879edb8c09937dc6f
2016-04-14 12:30:40 -07:00
Sunny Goyal 53b7ce18f4 Removing first launcher broadcast
Change-Id: I225205a219cf2e0f27bb3c78cbdad1a3429d466f
2016-04-14 11:25:56 -07:00
Hyunyoung Song ddec1c739e Refactor UserEventLogging, Add predictedRank, replace Bundle with Proto
b/26494415
- Removed bundle object that became redundant now that we have LauncherEvent proto
- Combined Stats and UserEventLogger as they are effectively doing same thing
- Removed parent field inside Target
- added predictedRank target inside Target

b/27967359
- make com.android.launcher3.action.LAUNCH broadcast explicit
Later CL: finish packageName/intent/componentHash/predictedRank fields

Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
2016-04-13 10:58:33 -07:00
Sunny Goyal 30a716157b Removing WallpaperPicker from Launcher3
Launcher3 will no longer include a wallpaper picker.
Eventually it will just point to the system wallpaper settings where
user can choose from all the installed pickers

Change-Id: Ib5832fa7e451610acd4b2d34ee48fe36e3699d26
2016-04-12 17:59:16 -07:00
Sunny Goyal 5be3e4cc52 Giving proper workspace description when the launcher is not loaded.
Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1
2016-04-12 16:11:59 -07: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
Sunny Goyal 849344b246 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary 2016-04-08 21:45:20 +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
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 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
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 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 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 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 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 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 e316a7fa4b Merge "Disable pinch gesture when accessibility is enabled." into ub-launcher3-calgary 2016-04-06 19:36:01 +00: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 b0e378000f Removing some wallpaper dependency
Change-Id: I3f88a76df40c64678e297f217d703ca296f2d5cd
2016-04-05 18:02:13 -07: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 b4c4dceb83 Merge "Listen on new broadcasts for profile changes." into ub-launcher3-calgary 2016-04-05 16:28:16 +00:00
Sunny Goyal e27815e33f Fixing wrong method name
Change-Id: Idabe5d8ee41f31d30dcbe03aa626f7b39f713c14
2016-04-04 17:51:04 -07:00
Sunny Goyal 13178ac822 Adding an upper bound to all-apps width on larger devices
Change-Id: I16a0d8fb7c5023045d0a6b9e8089e0ab6a476d6d
2016-04-04 16:35:47 -07:00
Tony Wickham 33326074b1 Stop animating highlighted page border in spring-loaded mode.
It looked weird, because the scrim cutout happens immediately
and the border flickered into place shortly after.

Bug: 27135377
Change-Id: Iff861db73c438c7dabccd6ed7c4ee38dbeb77ea1
2016-04-04 15:05:49 -07:00
Rubin Xu ac6e5d7956 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-04 16:13:35 +01:00
Sunny Goyal 44c06437e2 Fixing bug where folders on the first screen and hotseat are not
registered by the Launcher if there are folders on other screens

Instead of maintaing a static map of folder items, searching it
in the workspace during item removal.

Change-Id: I8aa93b3aa1d0bd812204471e3103f4bd29d1cd3d
2016-04-02 11:00:56 -07:00
Sunny Goyal 19c5c5765d Fixing white background under hotseat
Change-Id: I8b39bc9104dc16981e5642124cfd819da7a2f172
2016-04-02 10:28:22 -07:00
Sunny Goyal 8ab8fe9441 Merge "No need to differentiate package event into app or updated based on a package is being updated or not" into ub-launcher3-calgary 2016-04-01 22:51:54 +00:00
Tony Wickham 6ed21eebb4 Merge "Added ColorExtractionService and ExtractedColors." into ub-launcher3-calgary 2016-04-01 22:44:58 +00:00
Sunny Goyal 9c17741387 Merge "Fixing the loader to bind the first screen as well as the hotseat together" into ub-launcher3-calgary 2016-04-01 22:43:28 +00:00
Tony Wickham 827cef203f Added ColorExtractionService and ExtractedColors.
- Launcher has an instance of ExtractedColors, which is loaded from
  LauncherProvider in onCreate() and whenever the wallpaper changes.
  - When the wallpaper changes, the ColorExtractionService is started
    in the :wallpaper-chooser process.
  - ColorExtractionService builds an ExtractedColors instance and saves
    it as a String in LauncherProvider.
  - When the results are saved, Launcher gets a callback through
    LauncherProviderChangeListener and reloads the ExtractedColors.
- Whenever Launcher loads Extractecolors, it also re-colors items
  (currently a no-op).

Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
2016-04-01 15:40:57 -07:00
Adam Cohen f172b747c2 Fix a couple polish bugs with new folder previews
-> Don't reuse the same background object for the folder create preview
   since this can cause interruptions in the animations for previous
   creation previews.
-> When drawing the background to preview creation, don't draw the stroke
   above the icon since the icon is not yet contained by the folder.

Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc
2016-04-01 11:50:31 -07:00