Commit Graph

1543 Commits

Author SHA1 Message Date
Adam Cohen 040a5d2f7a Ensure we exit overview mode when screen turns off (issue 10750327)
Change-Id: I2bd31bf549e2bd88a2fbc958b94e5e1107994162
2013-09-16 17:11:20 -07:00
Adam Cohen d3ecce9192 Fix issue where you can't long press on empty screen to enter overiew mode
Change-Id: Ia7e3913187e5f38ce9db6f9da4bf9e8408ea977a
2013-09-16 14:58:24 -07:00
Michael Jurka 336fd4f65b Exit overview mode after setting wallpaper
Also, create method to exit overview mode without
an animation
Bug: 10332065
Change-Id: Iaade5ccb07aefa7d19be5f07db821a69762cb1bb
2013-09-14 14:38:19 +02:00
Allan Wojciechowski af110e8603 WIP: Add moveToCustomContentScreen method
To allow as to move to the -1 screen from GEL. Also added a
showWorkspace method to handle intents when we are in All Apps.

Related GEL CL at ag/357408

Change-Id: I0a4d03df2bf035d342b74f6c3c9b3fe9105f1c59
2013-09-13 16:17:22 -07:00
Adam Cohen 0a1cc7da27 Merge "Shrink-wrapping model to spec (issue 10397399)" into jb-ub-now-indigo-rose 2013-09-13 23:05:03 +00:00
Adam Cohen 5084cbab0e Shrink-wrapping model to spec (issue 10397399)
Change-Id: I87e32e8bd93f3b0468bc840200faed8270922a03
2013-09-13 16:02:44 -07:00
Winson Chung 11a1a53651 Fixing issue with folders not showing up.
- Add long click on empty spaces in hotseat to show overview mode
- Limit the height of all apps to the workspace + hotseat size
- Fixing some comments

Change-Id: Ie5a97a8b04e449385e2b3f6230079aebf8e15d5a
2013-09-13 11:40:05 -07:00
John Spurlock 77e1f47520 Add system window inset support to DragLayer and children.
Instead of fitting system windows as before, DragLayer now
lays out under the system windows.

DragLayer will simply add the system window insets to each
child's layout margins by default.  e.g. for Hotseat, Page
Indicators, QSB, Search Overlay.

Children that want to use the full viewport can declare so
by implementing a new Insettable interface.  System window
insets will be passed to Insettable#setInsets(insets) and
the child can do what it wants with them.

Currently, two of DragLayer's children implement Insettable:

1) Workspace (for the -1 screen).
   Full screen pages are given the entire viewport, paged
   view offsets modified to end up in the right place now
   that the viewport is larger (the full screen height).
   Non-full screen pages like the normal icon pages simply
   apply the insets to end up in the same place they did
   before.
   NowClientCardsView uses the full viewport, applying the
   insets as padding. Will want to better take advantage
   of this new real estate in a future CL.

2) All Apps (AppsCustomizeTabHost).
   Applies the insets as layout margin one level down, so that
   the bar area is opaque during the transition, but visually
   the content lands in the same place.

(Also add db_files to .gitignore to ignore the output of the
db tool)

Bug:10687177
Bug:10652189
Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
2013-09-11 16:29:34 -04:00
Bjorn Bringert 85f418d0f5 Allow Launcher class to hide activities from All Apps
There are a few questions for the launcher team
embedded in comments.

Bug: 10645210
Bug: 10551568
Change-Id: I67ad10da0d0f0f0885f8b14d329231c37aa6779b
2013-09-06 12:52:24 +01:00
Winson Chung c58497ee61 Initial changes to restore AllApps.
- Removes unused all apps code due to dynamic grid/spacing
- Attempts to use CellLayout instead of PagedViewCellLayout

Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
2013-09-05 12:14:28 -07:00
Michael Jurka eadbfc564d Move wallpapers to external activity
Also renaming Launcher's ApplicationInfo to
AppInfo since ApplicationInfo is already a 
framework class

Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
2013-09-04 16:21:20 +02:00
Adam Cohen e92c8c8e30 Merge "Adding custom content scroll progress callback" into jb-ub-gel-agar 2013-08-29 21:45:22 +00:00
Adam Cohen 30bacb2158 Added settings button to overview mode
Change-Id: Idcbfa49fe2710dec460155f34bd371321af6cf17
2013-08-29 14:37:46 -07:00
Adam Cohen c36fa5ce39 Adding custom content scroll progress callback
Change-Id: I23b007f6ac30809c03127f5d9030d8f367694310
2013-08-29 11:55:07 -07:00
Adam Cohen 4caf298a2c Logging to disk for more reliable logging
-> Re-adding basic distinction btw apps and shortcuts
-> Adding functionality to e-mail dump file, but not using

Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
2013-08-28 15:00:15 -07:00
Winson Chung 9e6a0a20d4 Clearing workspace screen data structures along with pages.
Change-Id: Ib6c4522cd0c0c06dd6fd327be3621a6de0778f9c
2013-08-27 15:54:46 -07:00
Winson Chung 53fc06d5d6 Merge "Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue." into jb-ub-gel-agar 2013-08-26 22:25:03 +00:00
Winson Chung 6c15a644cb Merge "Fixing folders to always show in view, removing old assets and references to LauncherModel count." into jb-ub-gel-agar 2013-08-26 22:08:09 +00:00
Winson Chung 0e6a713fca Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue.
- Fixing restoring of workspace screens on rotation (and flash of custom content page indicator)
- Fixing NPE on long pressing on empty screen to go into overview mode
2013-08-23 12:55:10 -07:00
Winson Chung 892c74d460 Fixing folders to always show in view, removing old assets and references to LauncherModel count. 2013-08-23 12:13:02 -07:00
Adam Copp eed7aa422f Merge "Get the view to be used as qsb bar from the launcher directly." into jb-ub-gel-agar 2013-08-23 13:47:28 +00:00
Michael Jurka a805e1a297 Finish support for third-party wallpaper pickers
Clicking on the pickers didn't do anything before.

Change-Id: I103caafbe8d44d27d1797436ce479fb769c4c0f4
2013-08-22 15:05:45 +02:00
Cristina Stancu 476493bcc3 Get the view to be used as qsb bar from the launcher directly.
This will allow more control over the qsb visuals and behaviour in GEL.
Depends on ag/339203

Future changes:
- revert ag/344333 since we won't need the normal qsb to support hotword
  anymore
- Dragging icons over the Drop target bar (to remove/uninstall them or
  get App info) doesn't currently work in GEL. There might be future
  changes needed to fix that.

Change-Id: Ic498f0abee5ad99ef1644ff94f174b61f8e1f5f0
2013-08-22 11:41:11 +01:00
Daniel Sandler 2b931429db Merge "Don't use a More Apps folder." into jb-ub-gel-agar 2013-08-21 13:27:27 +00:00
Daniel Sandler 8707e0fa1c Don't use a More Apps folder.
Instead, "extra" icons (which were not previously workspace
shortcuts) will be strewn across your workspace.

Change-Id: Ie8a7b533bb3c94bec3aa8fc7c7c8d3bea7eef485
2013-08-21 09:13:32 -04:00
Michael Jurka f3007589e3 Add logging for Folder drag issues
Drags out of Folders are getting lost, adding
debug code to see if the uninstall logic is
causing that

Also, fixing one potential cause of the issue

Change-Id: I0b6a91268571c2a9394e0d6f19fb9d324b427b51
2013-08-21 15:11:00 +02:00
Michael Jurka 104c456776 Initial implementation of new wallpaper picker.
Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
2013-08-21 13:18:29 +02:00
Winson Chung 6670073de8 Fixing issue with widget sizes being misreported.
- Fixing NPE with getting page indicators in phone landscape

Change-Id: Id369596e38cbe7a161c0d1f62e62e4f4f3cc31b3
2013-08-20 17:12:22 -07:00
Winson Chung 81d6f6ecca Merge "Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher." into jb-ub-gel-agar 2013-08-20 22:13:44 +00:00
Winson Chung d64d1763c5 Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher.
- Updating print_db to print workspace screens

Change-Id: Id477f5a5649c0d3b7ab0cce5ed99ca0a519d7706
2013-08-20 15:03:13 -07:00
Adam Cohen 89bddfaa6d Stripping unused method param
Change-Id: Id71664a88908773c5e64c9394070ad231d2148a1
2013-08-20 15:01:56 -07:00
Winson Chung 5f8afe6280 Initial Changes for Dynamic Grid
Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
2013-08-20 10:56:05 -07:00
Winson Chung 8a6870101c Merge "Ensuring that we don't clobber workspace screens map when new apps are added." into jb-ub-gel-agar 2013-08-19 23:54:56 +00:00
Winson Chung 76828c87dd Ensuring that we don't clobber workspace screens map when new apps are added.
- Using Log warnings instead of debugs
- Ensuring we don't save negative screen id's

Change-Id: I13276d007193c120ee0830abcdc6eb203f22a9da
2013-08-19 16:44:58 -07:00
Winson Chung e341d30a13 Fixing issue where widgets could not be picked up after the bind-dialog shows. (Bug 10332119) 2013-08-16 14:31:43 -07:00
Daniel Sandler bbd6ba5446 Merge "Hide WeightWatcher by default." into jb-ub-gel-agar 2013-08-15 23:00:50 +00:00
Daniel Sandler 6053b8007e Hide WeightWatcher by default.
Change-Id: I722b5f78311234860c4c0ac227cfb0115ffc8e01
2013-08-15 15:44:26 -07:00
Adam Cohen 1b7d423c65 Merge "Adding overview mode for reordering, widget adding and wallpaper switching" into jb-ub-gel-agar 2013-08-14 01:54:06 +00:00
Adam Cohen f358a4bbd6 Adding overview mode for reordering, widget adding and wallpaper switching
Change-Id: I082ba0b90ca4b3fbba32e8dfdec8ba79486d841c
2013-08-13 18:53:36 -07:00
Winson Chung 8481e32e5b Adding additional debugging code to track screen id updates.
Change-Id: I1749ab998a4c213b32f1160d5d21f21b2f30e389
2013-08-09 16:06:38 -07:00
Daniel Sandler 2594d71193 Merge "Initial implementation: Broadcasts on app launch." into jb-ub-gel-agar 2013-08-06 20:40:44 +00:00
Daniel Sandler ff02d49e46 Initial implementation: Broadcasts on app launch.
Look for com.android.launcher3.action.LAUNCH to be sent when
an icon is clicked in Launcher. (Restricted to
com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS
which is a signature permission right now.

This is specifically tracking apps launched via shortcut
icon; any other method of launching apps (notifications,
recents, internal navigation, etc.) is outside of Launcher's
purview and hence not broadcast.

The broadcast currently includes, in the "intent" extra, the
Uri flattening of the specific shortcut clicked.

The file /data/data/<pkg>/files/launches.log contains a
binary log of all such launches, including additional info
like screen# that should probably be in the broadcast too.

This info is summarized in .../stats.log, which encodes a
simple histogram of app launches since basically forever.
This should probably be done over a sliding window, which
will require more processing on startup.

Bug: 10031590
Change-Id: Ifc5921d5dc20701c67678cbfdc89b03cacd62028
2013-08-06 00:18:38 -04:00
Winson Chung 3dba179949 Merge "Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic." into jb-ub-gel-agar 2013-08-02 21:54:25 +00:00
Michael Jurka 5455425c1b Fix bugs with dragging items out of folders
A folder of one item wasn't converted to a single
item - this fixes that regression

It was also possible, in some rare cases, that the 
Folder cleanup code never ran after uninstalling
an app

Change-Id: Iee2490ed95d4f4a243b6f93411397a397aef7ae1
2013-08-02 13:58:43 +02:00
Winson Chung 707f650c5c Merge "Adding hint for launcher to pre-create custom workspace screen." into jb-ub-gel-agar 2013-07-31 17:44:44 +00:00
Winson Chung 98ca0f7203 Adding hint for launcher to pre-create custom workspace screen.
Change-Id: I150fb8b6ff13053bf4b0b49f2b510630ed50714a
2013-07-31 10:43:50 -07:00
Winson Chung 63d7870ea2 Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar 2013-07-31 17:34:54 +00:00
Winson Chung 997a92348a Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.
Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
2013-07-26 12:58:45 -07:00
Winson Chung c763c4e4d2 Verifying that new applications are added and fixing issue with new items getting wrong ids.
- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
2013-07-25 14:50:49 -07:00
Winson Chung 8c87cd83e0 Fixing issue where the page was reset to 0 on rotation.
- We needed to defer setting the restore page until the first onLayout

Change-Id: I6b7b4c0a6401ab6ab2caaea0dac0a7261ff831e8
2013-07-24 10:57:22 -07:00