Commit Graph

2994 Commits

Author SHA1 Message Date
Adam Cohen 917e38851c Fix issue with adding widget with config activity to empty screen (issue 11381059)
Change-Id: Ic7eecb30422e7a6cf35ebe8470d9eba8752d406e
2013-10-31 15:04:59 -07:00
Adam Cohen 3b185e2513 Fixing up PagedView to work in landscape mode
-> separated notion of page spacing and paged view padding
-> always position the current page within the rect
   created by pagedview's viewport + padding
-> space pages by a constant amount

Change-Id: I6bb35f72f04543f83b51ef981f8c9ded051623ac
2013-10-31 14:34:19 -07:00
Winson Chung b88ae4158d Fixing crash with invalid current page.
Change-Id: I36e76176b6172a747a6526d96b82c9870b56067c
2013-10-29 17:21:56 -07:00
Adam Cohen c53d77c7b0 Merge "Fixing regression in paging" into jb-ub-now-jetsonic 2013-10-29 22:27:43 +00:00
Adam Cohen 8bdbaab8e6 Fixing regression in paging
Change-Id: I9a76448aa09aea6a86a8a97860e48113c222a205
2013-10-29 15:25:12 -07:00
Michael Jurka 619a180be5 Make wallpaper picker/cropper more robust
- don't crash if image passed to wallpaper picker
is invalid
- close input streams correctly

Bug: 11413915
Bug: 11380658
Bug: 11362731

Change-Id: I973e6bdc532d24a64efd6d174e89fdac626d7ee3
2013-10-29 22:50:30 +01:00
Winson Chung 88400d521e Merge "Initial changes to support smaller landscape layouts." into jb-ub-now-jetsonic 2013-10-29 01:34:00 +00:00
Winson Chung 6e1c0d34bb Initial changes to support smaller landscape layouts.
Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
2013-10-28 18:30:25 -07:00
Adam Cohen 76bf5553e0 Merge "A bit of code cleanup (issue 11026590)" into jb-ub-now-jetsonic 2013-10-29 00:49:38 +00:00
Adam Cohen 4fe4c93222 A bit of code cleanup (issue 11026590)
Change-Id: I8b2ef52f59abdbe3ca286eac6e639f19a11f7970
2013-10-28 16:21:21 -07:00
Adam Cohen 849d120102 Merge "Finished getting rid of mPageSpacing" into jb-ub-now-jetsonic 2013-10-28 22:17:38 +00:00
Winson Chung fb7cd745e7 Merge "Ensuring the widget page is full when shown (Bug 10883258)" into jb-ub-now-jetsonic 2013-10-28 21:37:35 +00:00
Adam Cohen 0cd0eba42e Finished getting rid of mPageSpacing
Change-Id: I5dc8255e6cc902430a91dc27ad1edec5d4308468
2013-10-28 14:22:41 -07:00
Winson Chung 7bb3752d20 Ensuring the widget page is full when shown (Bug 10883258)
Change-Id: I9481b5551a2efc093d0fb81fc62a811b34d93d7c
2013-10-28 11:07:57 -07:00
Adam Cohen 7397e62460 Add visible touch feedback to items in folders
Change-Id: I41937f7864bca39232079a90139679ebd5cc2a07
2013-10-24 12:12:46 -07:00
Adam Cohen 1c6dee7204 Merge "Fix issue where empty page doesn't get deleted when flinging to delete a widget in spring loaded" into jb-ub-now-jetsonic 2013-10-23 23:17:06 +00:00
Adam Cohen e97a3b3ff8 Fix issue where empty page doesn't get deleted when flinging to delete a widget in spring loaded
Change-Id: I59a78a4b9135b2c96f0adb4a2e63b19d504706b7
2013-10-23 16:15:33 -07:00
Michael Jurka 03a526b276 Merge "Stop using a separate ImageView for default wallpaper" into jb-ub-now-jetsonic 2013-10-23 21:59:53 +00:00
Michael Jurka 83699e56be Stop using a separate ImageView for default wallpaper
Fixes janky transition when going from default
wallpaper to another wallpaper

Bug: 11278179

Change-Id: I738d1ae7bbc5e2d139a084e721b53fed9008367f
2013-10-23 23:54:21 +02:00
Adam Cohen a718fc279d Merge "Cleaning some page animations" into jb-ub-now-jetsonic 2013-10-23 21:17:17 +00:00
Adam Cohen ad4e15cae4 Cleaning some page animations
-> Fix jump when last page gets delted (issue 10908427)
-> Fade out empty screen
-> If the final page is empty, and that is the current page when
   spring loaded mode ends, animate back to the previous page
   and then fade out the final page. Examples: cancel widget
   or shortcut drop on the final page, scroll to final page and
   drop an icon into a the hotseat, etc.

Change-Id: I13438fb0af6555b6f0b511b7aff51b3972431438
2013-10-23 14:11:45 -07:00
Daniel Sandler 0b5e98f7c2 am 55585dbc: Fix loading widgets in <include>d workspaces.
* commit '55585dbc1d5d9281416f346167832f2a2f443c0c':
  Fix loading widgets in <include>d workspaces.
2013-10-23 12:09:53 -07:00
Daniel Sandler 55585dbc1d Fix loading widgets in <include>d workspaces.
Resetting the item id was breaking the widget loading code
and is totally unnecessary.

Bug: 11352675
Change-Id: I2e70e542ecc5d8c0664b674ebdac5d520b71b8a0
2013-10-23 18:52:18 +00:00
Michael Jurka 3d7f086f6a Merge "Prevent memory leaks coming from LauncherAnimUtils" into jb-ub-now-jetsonic 2013-10-23 18:39:18 +00:00
Michael Jurka d9546fc66b Don't recreate pages every time you go to All Apps
Bug: 11300025

Change-Id: I16ddcf1b435621bb0c0199ca7ac119b9e7ca7214
2013-10-23 15:41:49 +02:00
Michael Jurka 7c70d64d4c Prevent memory leaks coming from LauncherAnimUtils
Use weak references for global animation list

Bug: 11322014

Change-Id: I38bb9184e45840113129781fa83ab40ec96d3868
2013-10-23 15:22:17 +02:00
Adam Cohen 4d3f022c9a Merge "DO NOT MERGE: Fix leak when animations are created but never started" into jb-ub-now-indigo-rose 2013-10-22 00:25:08 +00:00
Winson Chung a78b25f89d DO NOT MERGE
Clearing reference to SavedState bundle after restoring from it. (Bug 11322014)
(cherry picked from commit d8e596db4b)

Change-Id: I106f4897ef4ab43d996c0b926ce08ab6ccb2d8a4
2013-10-22 00:20:19 +00:00
Adam Cohen 313bbd2f3b Merge "Clearing reference to SavedState bundle after restoring from it. (Bug 11322014)" into jb-ub-now-jetsonic 2013-10-22 00:19:35 +00:00
Winson Chung d8e596db4b Clearing reference to SavedState bundle after restoring from it. (Bug 11322014) 2013-10-21 17:14:12 -07:00
Michael Jurka 7e839ec8f6 DO NOT MERGE: Fix leak when animations are created but never started
Bug: 11322014
(cherry picked from commit e206ff0f73)

Change-Id: I5aaf76d7c96e4a7878946d7de337acd858c11f44
2013-10-22 00:13:12 +00:00
Michael Jurka 4edc931562 Merge "Fix leak when animations are created but never started" into jb-ub-now-jetsonic 2013-10-21 23:00:42 +00:00
Michael Jurka e206ff0f73 Fix leak when animations are created but never started
Bug: 11322014
2013-10-21 15:57:38 -07:00
Michael Jurka 862f7e3950 Load images on a bg thread
Bug: 11134758

Change-Id: Ie789a2fcb2024832ac104cd9cdbc3602abee85ee
2013-10-21 14:51:49 -07:00
Winson Chung 1fa05179eb Merge "Ensuring that we have a valid name for installed shortcuts. (Bug 11266005)" into jb-ub-now-jetsonic 2013-10-17 20:44:10 +00:00
Winson Chung 681a4aced8 Merge "Updating folder icons when the shortcut is updated. (Bug 10803060)" into jb-ub-now-jetsonic 2013-10-17 20:44:04 +00:00
Winson Chung 6d00d54ea1 Merge "Ensuring disabled packages remove all components on the workspace. (Bug 11172454)" into jb-ub-now-jetsonic 2013-10-17 20:44:00 +00:00
Winson Chung 2c1afde5cd Ensuring that we have a valid name for installed shortcuts. (Bug 11266005)
Change-Id: Idf723ba165522cf259d9fe71533e1d5765512865
2013-10-17 11:04:00 -07:00
Bjorn Bringert 9933a5ebbf am 235a50e0: Merge "Fix ConcurrentModificationException in InstallShortcutReceiver" into jb-ub-now-indigo-rose
* commit '235a50e0d1a303e586c36bc5e70d560b8b924d58':
  Fix ConcurrentModificationException in InstallShortcutReceiver
2013-10-17 09:20:41 -07:00
Bjorn Bringert 4e871a217b Fix ConcurrentModificationException in InstallShortcutReceiver
Before, if two shortcuts were added, and then the package for one of them
removed, all while Launcher wasn't visible, Launcher crashed.

Bug: 11264076
Change-Id: I892c190101389aa42d84d66960f5b6f6f43f2dfc
2013-10-17 14:14:48 +01:00
Winson Chung 8c90331193 Updating folder icons when the shortcut is updated. (Bug 10803060)
Change-Id: Idee158b3458213e441c01890e0db341a3bcce1f7
2013-10-16 17:51:49 -07:00
Winson Chung df95eb12a4 Ensuring disabled packages remove all components on the workspace. (Bug 11172454) 2013-10-16 14:57:19 -07:00
Michael Jurka 51b9f6a570 Merge "Refactor RTL wallpaper code to use getLayoutTransitionOffsetForPage" into jb-ub-now-jetsonic 2013-10-16 20:53:04 +00:00
Michael Jurka 8fd3adc2a3 Refactor RTL wallpaper code to use getLayoutTransitionOffsetForPage
Bug: 11157913
2013-10-16 13:50:31 -07:00
Winson Chung 5801ef048a Lazy load default app icon in LauncherModel. (Bug 11203738)
Change-Id: I397b532f247309de9ae5636b51f125f639966696
2013-10-16 13:46:28 -07:00
Adam Cohen 3798b643cd Fix issue where you could trigger a click after long pressing a widget (issue 11186227)
Change-Id: I5a767ac6352f7efb4d3c6c2768c8d2aaaa913f3f
2013-10-16 10:41:10 -07:00
Michael Jurka da6ab129b7 Merge "Use new default wallpaper API" into jb-ub-now-jetsonic 2013-10-16 17:35:02 +00:00
Mac Duy Hai 09d85a1438 am 8246a143: Shortcut show/hideSearchBar with new conditions.
* commit '8246a1434c12b607743222c22285b72c9a96497b':
  Shortcut show/hideSearchBar with new conditions.
2013-10-16 07:09:59 -07:00
Mac Duy Hai 8246a1434c Shortcut show/hideSearchBar with new conditions.
This is effectively a revert of:
https://googleplex-android-review.googlesource.com/374556

With the new rules, we won't shortcut if:
 - the search bar is in an opposite visibility OR
 - a non-animated change has been requested AND there
   is an ongoing animation.

This makes sure that showSearchBar(false) called after
showSearchBar(true) is not ignored.

Bug: 11105305
Bug: 11237729
Change-Id: I92668dfac072e62506b2872e8bfbe9f707c9cc69
2013-10-16 14:00:17 +01:00
Adam Cohen 28f852ab67 Fix drop animation issue in springloaded
Change-Id: I1d8bf9d92ab7b94238e3e6a27b0eebf2c9af6872
2013-10-15 16:13:28 -07:00