Commit Graph

3966 Commits

Author SHA1 Message Date
Winson Chung
bd808530db Temporarily tweaking the all apps layout to fit the screen on tablets.
Change-Id: I2f8fe8e39a39cd6a055f22696881c51be7624832
2015-04-08 11:10:12 -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
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
3d9490ab95 Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
2015-03-24 18:02:01 -07: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
3879194799 Check the code point instead of the character when determining digit sections.
Change-Id: Ie21fda92ca5097cc9deb7c59001b61dc44603d4b
2015-03-24 15:23:51 -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
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
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
Sunny Goyal
15b480f234 Removing unused logging
> We store some local logs which are never propagated to the
server and cause unnecessary file-io during app launch

Change-Id: I2b41c3af182de2a87f38ad88f3bae9d250574c26
2015-03-19 10:21:53 -07:00
Adam Cohen
57dadda844 Merge "Make sure we set the QSB bar on the SearchDropTargetBar" into ub-launcher3-burnaby 2015-03-19 05:33:16 +00:00
Adam Cohen
b0df1b0e1a Make sure we set the QSB bar on the SearchDropTargetBar
Change-Id: If106bae15b3d628d6385711bcb8059acd17d6147
2015-03-18 22:22:03 -07:00
Sunny Goyal
4cad7538c9 Cleaning up widget preview loader
> Removing unnecessary canvas cache
> Removing unnecessary new bitmap creation

Change-Id: Ic9f45c5a204ea4d32dbf93c21a6a7fd6baea4b51
2015-03-18 22:20:20 -07:00
Sunny Goyal
6b6ffbe907 Merge "Invalidating sorted list after the item has been added" into ub-launcher3-burnaby 2015-03-18 18:13:11 +00:00
Sunny Goyal
2e688a8cc2 Invalidating sorted list after the item has been added
Bug: 19815825
Change-Id: If10d19d41a2400b5a7350e40fa6116494dc9c5a6
2015-03-18 10:23:39 -07:00
Sunny Goyal
8758ea050a Using MainThreadExecuter instead of View.post
Change-Id: Ie7ba88bd3bb412d998ecb51095cbaa74b3b39c10
2015-03-18 10:09:10 -07:00
Sunny Goyal
34b6527cef Lazy loading high res icons
> Loading low-res icons for icons which are not visible on
the homescreen.

Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
2015-03-17 15:05:23 -07:00
Sunny Goyal
5d85c44fd8 Adding sort switch in FolderPagedView
> Adding options column in DB to store generation purpose flags
> Storing isSorted flag in FolderInfo
> Adding a switch for A-Z sorting (only visible if pageCount > 1)
> When in sorted mode, spring-load snaps to the target location for 1.5 seconds

Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
2015-03-17 14:49:38 -07:00
Hyunyoung Song
ce53e6dd12 Merge "key event focus logic should support large tablets" into ub-launcher3-burnaby 2015-03-17 18:36:06 +00:00
Hyunyoung Song
18bfaafd3d key event focus logic should support large tablets
TL;DR;; On smaller tablets, landscape = vertical hotseat bar, and
portrait = horizontal hotseat bar. However, in larger tablets, hotseat bar is
always horizontal. This is now correctly handled using DeviceProfile.isVerticalBar
method.

b/19732584

Change-Id: I1035c89b4685be12dbc863f8a1465047a5fec6a6
2015-03-17 11:32:21 -07:00
Winson Chung
979853943c Merge "Tweaking the apps list fast scroller." into ub-launcher3-burnaby 2015-03-16 23:48:34 +00:00
Winson Chung
aa2ab254ea Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.

Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
2015-03-16 15:20:39 -07:00
Sunny Goyal
b4cd42a1df Extracting out CacheKey to a separate class
Change-Id: Ifdd7cc79668b34298e3f788ee684080cecb86c3e
2015-03-16 14:54:50 -07:00
Winson Chung
c13b994c04 Merge "Minor changes to apps view." into ub-launcher3-burnaby 2015-03-13 18:50:18 +00:00
Winson Chung
888b3a10bf Minor changes to apps view.
- Ensuring that apps with numbers and in other locals have a section header.
- Adding an empty state when there are no apps with the current filter
- Removing unnecessary call to check AppInfos

Change-Id: I9dc541c680475b98745fa257ad7e4af06e3966c9
2015-03-13 11:48:45 -07:00