Commit Graph

9231 Commits

Author SHA1 Message Date
Winson Chung 47eb4efe67 Merge "Ensuring that work-profile applications are mixed in with other apps." into ub-launcher3-burnaby 2015-04-06 21:52:51 +00:00
Winson Chung c517f4ce65 Ensuring that work-profile applications are mixed in with other apps.
Bug: 20046158
Change-Id: I833c1a1467889db07f9ec33ca77641322901958e
2015-04-06 14:51:13 -07:00
Sunny Goyal d405693ca2 Merge "Adding support for loading package icon in iconCache" into ub-launcher3-burnaby 2015-04-06 21:07:47 +00:00
Sunny Goyal d180cf7e16 Adding support for loading package icon in iconCache
> package icons need to be retrieved from IconCache for the new widget tray

Bug: 19897708
Change-Id: Iaafc5e16477aaa4e9a7c46b5abf8146cd1101ffd
2015-04-06 13:51:28 -07:00
Adam Cohen 2e52c90b3f resolved conflicts for merge of 68fdeaad to ub-launcher3-burnaby
Change-Id: I29aa5b37968b1ced81cdeb68a021db9310047252
2015-04-06 13:11:38 -07:00
Sunny Goyal b5352011e6 Merge "Adding a system status column in icon cache & invalidating items based on it" into ub-launcher3-burnaby 2015-04-06 18:44:59 +00:00
Sunny Goyal 35ca873bd9 Adding nullcheck when getting app restrictions
Bug: 20085185
Change-Id: I782a79a331a2d58287e34e24ed7730207bf260cb
2015-04-06 10:46:01 -07:00
Sunny Goyal adb7541648 Merge "Reinflating QBS on resume, if the widget orientation is not same as launcher orientation" into ub-launcher3-burnaby 2015-04-03 16:30:42 +00:00
Sunny Goyal 22235bcb40 Reinflating QBS on resume, if the widget orientation is not same as launcher orientation
Bug: 20044969
Change-Id: I5c285ddb09fc8b5d8444795eda64cd28486ab81d
2015-04-03 09:26:48 -07:00
Sunny Goyal 8d600321ff Merge "Updating pageindicator assets" into ub-launcher3-burnaby 2015-04-02 18:22:37 +00:00
Sunny Goyal 0c9a354c97 Adding a system status column in icon cache & invalidating items based on it
Bug: 20034430
Change-Id: Icd6c6426fc7ed26cd104bf22a9d2b0263cb0fa67
2015-04-01 16:05:34 -07:00
Sunny Goyal 1d4a2df091 Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
2015-04-01 10:20:18 -07:00
Sunny Goyal e9909f58c2 Removing UninstallShortcutReceiver
> Removing support due to its flacky design. Removing a shortcut
causes a full reload. Also we do not have any concept of owner, so
any app can remove any shortcut.

Bug: 11372484
Change-Id: I781c922fac7dc77ea82cd0a2af74a5fca22500de
2015-04-01 10:11:11 -07:00
Robert Kozikowski 7db312f37b am 67c30861: Adding Launcher3 callbacks for trimming memory.
* commit '67c3086163593db47e57b8cf4fcb034334374000':
  Adding Launcher3 callbacks for trimming memory.
2015-03-30 23:10:00 +00:00
Robert Kozikowski 67c3086163 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
 make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.

It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.

Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
2015-03-30 23:57:46 +01:00
Winson Chung 24cf70092b Ensuring that we fast-scroll to the first section app.
Bug: 19992026

Change-Id: Ia015b870f80fa598fa68087f90236c59b0ad7e6d
2015-03-30 15:28:43 -07:00
Sunny Goyal d3d37090c4 Updating pageindicator assets
Change-Id: I8c045ac8193aed2299e72353fd75341f8e32e250
2015-03-30 10:15:50 -07:00
Adam Cohen b272ca83f0 am b823ae4f: Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
* commit 'b823ae4fca345e051831732ff2760023ef6ec2c4':
  Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
2015-03-28 22:12:01 +00:00
Adam Cohen b823ae4fca Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
2015-03-27 18:09:01 -07:00
Adam Cohen 5f2a098ef3 am 173f711e: Ensure that we capture all paths for starting activity for result
* commit '173f711e03dfce70d76c3b45f764a4f6b682a3b3':
  Ensure that we capture all paths for starting activity for result
2015-03-27 23:18:30 +00:00
Adam Cohen 173f711e03 Ensure that we capture all paths for starting activity for result
-> AppWidgetManagerCompatVL uses an IntentSender to launch the widget
   config activity (to handle the case of cross profile config activities)
-> Launcher was not overriding this method, and so not capturing the fact
   that we are waiting for a result.

issue 19723510

Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
2015-03-27 22:19:38 +00:00
Sunny Goyal 4e0a368dff Merge "Configuration of workspace through app restrictions" into ub-launcher3-burnaby 2015-03-27 22:13:37 +00:00
Sunny Goyal b2d46ceaaa Configuration of workspace through app restrictions
> Checking for a grid specific layout before loading the default layout

Change-Id: I1e8d4176341e61d0876b0a9bea9ad8010e3a0f6a
2015-03-27 13:00:44 -07:00
Sunny Goyal 2f0ec85acf Disabling overscroll when folder has only one page
Change-Id: I3cc3964dba1af8d96822e46baf2dc9cfaee824ae
2015-03-26 13:38:27 -07:00
Winson Chung 28f4188bac Merge "Removing more code with API 21 dependencies." into ub-launcher3-burnaby 2015-03-25 01:06:44 +00:00
Winson Chung 3d9490ab95 Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
2015-03-24 18:02:01 -07:00
Winson Chung a6b00b3223 Merge "Ensure that we are not using the new View constructor." into ub-launcher3-burnaby 2015-03-24 23:34:27 +00:00
Winson Chung d0930655e5 Ensure that we are not using the new View constructor.
Change-Id: Iac2dba6d42cd60d6260aee9afc590564d25919a5
2015-03-24 16:31:45 -07:00
Winson Chung e7084159de Merge "Check the code point instead of the character when determining digit sections." into ub-launcher3-burnaby 2015-03-24 22:54:07 +00:00
Winson Chung 3879194799 Check the code point instead of the character when determining digit sections.
Change-Id: Ie21fda92ca5097cc9deb7c59001b61dc44603d4b
2015-03-24 15:23:51 -07:00
Sunny Goyal ca93ec66d0 Merge "Removing unused strings with no default translations" into ub-launcher3-burnaby 2015-03-24 22:19:19 +00:00
Sunny Goyal 68052094f5 Removing unused strings with no default translations
> Removes build system gives warning when Launcher3 is build

Change-Id: I40e5df7538d244b3ec3f2b722bf2606e622011f2
2015-03-24 14:38:33 -07:00
Winson Chung dcb3fa6939 Merge "Making the scrollbar scrubbable." into ub-launcher3-burnaby 2015-03-24 17:33:30 +00:00
Winson Chung f819dc2bc7 Making the scrollbar scrubbable.
- This change in behavior will remove the ability to scrub anywhere in the gutter to
  start fast-scrolling, but requires the user to touch near the scroll bar to start
  fast-scrolling.
- Also fixes issue with wonky scrollbar due to the fake section breaks

Change-Id: I34b08ac46ea93f7f4cad7ccde1048a388ee6a55d
2015-03-24 10:30:05 -07:00
Sunny Goyal 10451a967f Merge "Adding BaseActivity which can be overriden for custom behavior" into ub-launcher3-burnaby 2015-03-23 19:17:11 +00:00
Sunny Goyal 1d0b093a6e Adding BaseActivity which can be overriden for custom behavior
Change-Id: I6707aa99f5d33dceede226a6367e24482f5157f6
2015-03-21 11:11:03 -07:00
Adam Cohen 2670980ab7 Remove dublicate BubbleTextView styleable
Change-Id: Ib1db985515194dfeebe2dfa934b29023ae0a3075
2015-03-21 09:18:56 -07:00
Sunny Goyal 5319b2bb3b Merge "Removing all dependencies of launcher code on wallpaper-picker" into ub-launcher3-burnaby 2015-03-21 01:19:35 +00:00
Sunny Goyal 244fa8c9a2 Merge "Rewrite: Widget preview loader logic" into ub-launcher3-burnaby 2015-03-21 01:19:26 +00:00
Sunny Goyal 6a1e95a3df Removing all dependencies of launcher code on wallpaper-picker
> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
2015-03-20 18:16:58 -07:00
Sunny Goyal e85d714522 Fixing getItemCount in FolderPagedView
> When a folder is created, it initially has no item, and then
two shortcut info are added to it. Initial logic assumed that the
folder it created with on item already present

Bug: 19868273
Change-Id: I8850b71d2bace835f94e3cd791c173d40752d2e6
2015-03-20 18:12:53 -07:00
Sunny Goyal 5b0e669169 Rewrite: Widget preview loader logic
> Widget previews are saved in data dir instead of cache dir
> Expiring widget previews similar to IconCache
> Removed support for setting thread priorities

Bug: 19865031
Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
2015-03-20 17:31:11 -07:00
Sunny Goyal 71c3baf5eb Merge "Removing unnecessary intent-filter construction" into ub-launcher3-burnaby 2015-03-20 19:29:12 +00:00
Adam Cohen 091440a9cb Reducing method count by eliminating synthetic accessors
Elimates 304 methods based on dex analysis

The java compiler generates sythetic accessor methods for all private
fields, methods and contructors accessed from inner classes. By marking them
package-private and @Thunk instead, sythentic accessor methods are no
longer needeed. These annotated elements should be treated as private.

Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
2015-03-20 11:15:54 -07:00
Sunny Goyal f846b9054c Merge "Removing unused logging" into ub-launcher3-burnaby 2015-03-20 01:36:07 +00:00
Robin Lee ec3fe183eb am 2dd9f018: (-s ours) Don\'t clobber widgets with the same component - DO NOT MERGE
* commit '2dd9f018ff32a1f34023826b64422622f6610daf':
  Don't clobber widgets with the same component - DO NOT MERGE
2015-03-19 21:33:31 +00:00
Robin Lee 26ace12135 Don't clobber widgets with the same component.
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:23:13 +00:00
Robin Lee 2dd9f018ff Don't clobber widgets with the same component - DO NOT MERGE
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:16:34 +00:00
Sunny Goyal 0f93d5e718 Merge "Cleaning up widget preview loader" into ub-launcher3-burnaby 2015-03-19 21:05:17 +00:00
Sunny Goyal 27595796b3 Removing unnecessary intent-filter construction
Change-Id: I1f831ef48ed69381ad260f7d541f39a049c498a5
2015-03-19 13:19:21 -07:00