Commit Graph

6642 Commits

Author SHA1 Message Date
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
Winson Chung 430b79fd0e Merge "Cancelling long press on widgets if they don't handle touch/tap." into jb-ub-gel-agar 2013-08-16 20:30:18 +00:00
Winson Chung e7a852ef15 Cancelling long press on widgets if they don't handle touch/tap.
Change-Id: Id5f002f64d02d8d5fb9bdda8b062a026decbe0e2
2013-08-16 11:10:59 -07:00
Adam Cohen e3381e11b0 Merge "Removing custom content padding" into jb-ub-gel-agar 2013-08-15 23:19:08 +00:00
Adam Cohen 2702ea0060 Removing custom content padding
-> Cleaned up extraneous imports

Change-Id: I3f9258a893e85f9f6a7cc1eab03d4c5a3dfba786
2013-08-15 16:18:09 -07:00
Daniel Sandler b3699f0a27 Merge "Rename All Apps to More Apps." into jb-ub-gel-agar 2013-08-15 23:01:07 +00:00
Daniel Sandler bbd6ba5446 Merge "Hide WeightWatcher by default." into jb-ub-gel-agar 2013-08-15 23:00:50 +00:00
Daniel Sandler dd3204b01f Rename All Apps to More Apps.
Because they aren't all there anymore.

Change-Id: I4acee9abaefd089d903068ea519371549588c4e2
2013-08-15 15:47:41 -07:00
Daniel Sandler 6053b8007e Hide WeightWatcher by default.
Change-Id: I722b5f78311234860c4c0ac227cfb0115ffc8e01
2013-08-15 15:44:26 -07:00
Adam Cohen 3d1b2b4206 Passing right swipes through to custom content
-> Right swipes must follow page settle by >= 200 ms.

Change-Id: Ie5a5ae36e63f28736599a8a846570949447f7a03
2013-08-14 15:57:58 -07:00
Adam Cohen 61a9a5c359 Don't switch pages when dragging out of folder
-> Fix bug where page switch indicator wouldn't draw on right
-> Fixed some code related to folder reordering -- no behaviour change
   yet, but once the new AutoScroll is in, this should behave correctly
   (ie. shouldn't reorder while in scroll zone)

Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
2013-08-14 13:36:51 -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 cda0921782 Merge changes I559fae32,Ic4db1a3a into jb-ub-gel-agar
* changes:
  More logging.
  Adding additional logging.
2013-08-13 17:57:15 +00:00
Romain Guy e6661950f5 It is *very important* to call super.onDetachedFromWindow()
Bug #10075732

Change-Id: I515005e35398317d98124964b6bb74f488a213f4
(cherry picked from commit 2361a4daf77ac1f076273d19bc6e171b3b74b22e)
2013-08-13 18:49:01 +02:00
Winson Chung e34930346b More logging.
Change-Id: I559fae32d80b6d7151ce519d81c662737fb23404
2013-08-12 18:57:12 -07:00
Winson Chung 45fa06ed1e Adding additional logging.
Change-Id: Ic4db1a3abe8b735f07e51a2d35ca92273b5f76c8
2013-08-12 18:37:42 -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
Winson Chung d1a191d32d Merge "Fixing regression in initializing install time." into jb-ub-gel-agar 2013-08-07 21:15:20 +00: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 cff295f8b7 Merge "Remove unnecessary FolderRing bitmaps." into jb-ub-gel-agar 2013-08-06 17:08:09 +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 1323b4856a Fixing regression in initializing install time.
Change-Id: Iedeae0eed7cc929ee7cb2be99bd3bdc58822ce6e
2013-08-05 12:41:55 -07:00
Michael Jurka 695ff6b6fa Fix build error 2013-08-05 12:09:10 +02:00
Winson Chung f795d7b2ad Merge "Cross referencing all shortcuts on workspace with the PackageManager to ensure we don't have zombie icons." into jb-ub-gel-agar 2013-08-02 21:55:16 +00: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
Winson Chung 114cbcebbc Merge "Fix bugs with dragging items out of folders" into jb-ub-gel-agar 2013-08-02 18:55: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
Michael Jurka acdaf3cd63 Merge "Small code formatting changes" into jb-ub-gel-agar 2013-08-02 10:37:35 +00:00
Winson Chung 482a5b6ed3 Fixing crash due to grabbing oob screen index. (Bug 10114488)
Change-Id: I9e0c3d9bfcf96f092260a82b930b7ea728b6e98d
2013-07-31 17:19:51 -07: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 08ab8d28c6 Merge "Prevent dragging workspace items to custom content page." into jb-ub-gel-agar 2013-07-31 17:31:17 +00:00
Winson Chung df11a77f29 Merge "Adding support for custom page indicator markers." into jb-ub-gel-agar 2013-07-31 17:30:55 +00:00
Daniel Sandler 24ad0f0aad Remove unnecessary FolderRing bitmaps.
Bug: 10097530
Change-Id: Ic791d5c36b16474e1ab0a800e18aec802755dd67
2013-07-31 00:14:58 -04:00
Winson Chung ee055715cf Cross referencing all shortcuts on workspace with the PackageManager to ensure we don't have zombie icons.
Change-Id: If9e22bbf1e3e0228e6ce9c76044ae7e015ebf54f
2013-07-30 14:46:24 -07:00
Derek Prothro ce9249e4d3 Call onShow/onHide when visibility changes on -1 screen.
Bug: 10089616
Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
2013-07-30 15:40:07 -04:00
Michael Jurka 24715c7515 Small code formatting changes 2013-07-29 18:29:03 +02:00
Winson Chung 82dfe58514 Adding support for custom page indicator markers.
Change-Id: I057b0cccc4194157d92ebb123af2afaf94fb5415
2013-07-26 15:07:49 -07:00
Winson Chung 9883c9ae25 Prevent dragging workspace items to custom content page.
Change-Id: I4279f5feffb9512af66243969efaaadfb9011962
2013-07-26 13:50:47 -07: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 18350f2dc4 Merge "Updating focus helper to account for change in Folder layout hierarchy. (Bug 9626867)" into jb-ub-gel-agar 2013-07-25 18:17:12 +00:00
Winson Chung a1f133de78 Updating focus helper to account for change in Folder layout hierarchy. (Bug 9626867)
Change-Id: I8d6cce9089913de987316c9790ecfb301ca1f218
2013-07-25 11:15:13 -07:00
Daniel Sandler 47b5031c70 Fix NPE on failed loader queries.
Bug: 9901236
Change-Id: I3139174dd03ac3e79960f03729b7a39528804d76
2013-07-25 13:16:14 -04:00
Adam Cohen 6ad0e7dcae Fix overhang of custom content area into first screen of launcher
Change-Id: I2e8cbedb644c8399be269616e617851136489da5
2013-07-24 14:25:58 -07:00