Commit Graph

16725 Commits

Author SHA1 Message Date
Andrew Flynn 633f1aad55 am 989dc514: am bc239a15: Scale icons down for sw600dp-land mode.
* commit '989dc51400f4511e8411b0f1e6c525c024fbb949':
  Scale icons down for sw600dp-land mode.
2012-03-07 17:04:57 -08:00
Michael Jurka 9e371e95f1 Merge "Don't do equal comparison with trim memory level." 2012-03-07 11:32:29 -08:00
Dianne Hackborn 4f560cec93 Don't do equal comparison with trim memory level.
It is possible for the app to get different values, for example
if memory is already low then it will immediately go to one of
the low memory levels when the app goes in the background.

Change-Id: I6522cb0385748d926ea7868eacaf588790672f1b
2012-03-06 19:07:47 -08:00
Andrew Flynn bc239a1546 Scale icons down for sw600dp-land mode.
Cached icons are statically all the same size, so we need to do
it on the fly.

Change-Id: Iae294ff4668f987db8fe5127bae724bf08363542
2012-03-06 13:31:44 -08:00
Winson Chung 41bb19d277 Always remove drag view immediately when cancelling drag. (Bug: 6119112)
Change-Id: Ib0a829c5bee834700e29dba8538c83b773d017b2
2012-03-05 18:37:21 -08:00
Adam Cohen 89f38eaf84 Stripping out dead code for global drag and drop so that it doesn't have to be maintained
Change-Id: I133a0a73f761c52e533bd35d7aaef76726f73b97
2012-03-02 14:51:29 -08:00
Michael Jurka b7aa41dc38 Merge "Improve code to determine which pages are visible" 2012-03-02 14:06:14 -08:00
Michael Jurka 47f747418e Improve code to determine which pages are visible
Change-Id: I2c349d987ddb5f399283088c128e6d4d056da4da
2012-03-02 13:45:03 -08:00
Adam Cohen 7f1435c303 Merge "Fixing animation bug when moving an icon to an adjacent screen" 2012-03-02 11:16:16 -08:00
Andrew Flynn 826a661d5b resolved conflicts for merge of a3e22d6a to master
Change-Id: I8770574acf86e280a9d15d4309686111260e09d9
2012-03-01 16:26:50 -08:00
Andrew Flynn 0dca1ec414 New small/large screen division for Launcher.
Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).

Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
2012-02-29 17:30:37 -08:00
Adam Cohen 85b467bf3f Fixing animation bug when moving an icon to an adjacent screen
Change-Id: I42eed5240bb23689285da8afdd37a1228e4cc486
2012-02-29 15:38:46 -08:00
Adam Cohen ca83eeb091 Fix bug where widget min spans weren't being loaded on workspace bind
Change-Id: I984c3e226ae1c602a6b1dd366241e7f2d093f2a4
2012-02-29 15:18:40 -08:00
Michael Jurka b8fffe7639 Merge "Fix wallpaper offsets for live wallpapers on tablet" 2012-02-29 14:34:33 -08:00
Michael Jurka 9551537718 Fix wallpaper offsets for live wallpapers on tablet
we were giving values that weren't an even fraction
(ie n/4 where n = the screen # we're on) and
therefore live wallpapers couldn't tell when we
were fully settled on one of the workspace screens

Bug# 6029132
2012-02-29 14:19:33 -08:00
Winson Chung 71d764f7ed Merge "Fixing flashing icon on delete, and offset of delete animation." 2012-02-29 13:48:24 -08:00
Winson Chung c3a747ac24 Fixing NPE when null intent passed to InstallShortcutReceiver. (Bug: 6089830)
Change-Id: Ideeb26abd29039f9b8d2dde0a752986249148a8c
2012-02-29 10:56:54 -08:00
Winson Chung 61967cb17f Fixing flashing icon on delete, and offset of delete animation.
Change-Id: I993f2d8e54cc7052e16f318a09ada80e9b766147
2012-02-29 10:25:41 -08:00
Adam Cohen f0777b9d7a Fixing drag and drop framerate regression in workspace
-> Animating the alpha on workspace during drop was slowing things down.
   Instead we modify the alpha on the individual CellLayoutChildren objects
   which have hardware layers, so modulating their alpha is cheap.

Change-Id: Id31e47cd05d593d2fef0ab28e15a9d4e11ed1aa1
2012-02-28 14:23:50 -08:00
Adam Cohen d41fbf5680 When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it
   in its current (or default) size, but can be scaled down to fit
   a certain area, it will be resized to fit the available space
-> The resizing is animated using a crossfade and scale between
   the original dragView and the widget rendered in the final size

Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
2012-02-27 17:30:32 -08:00
Winson Chung aeae56bf12 Prevent build break.
Change-Id: Id4413263c3b2c0b470b78dc4936714353cd849dd
2012-02-24 15:47:37 -08:00
Michael Jurka 5f1c44ab0d Merge "Delaying building of hardware layers when Launcher is resumed" 2012-02-24 15:39:52 -08:00
Michael Jurka 6ee21d28fa Delaying building of hardware layers when Launcher is resumed 2012-02-24 13:39:21 -08:00
Winson Chung 325f7fef37 Merge "Fixing issue where icons can't be clicked during launcher transition." 2012-02-24 13:09:05 -08:00
Winson Chung 9b0b2fefb2 Fixing issue where icons can't be clicked during launcher transition.
- Also tweaking the workspace fade in/out interpolators

Change-Id: I65d1aefbead13f662c84a2f1178c73615153fd5a
2012-02-24 13:04:26 -08:00
Michael Jurka 6cfafb96c3 Fix a lot of easy lint issues
Change-Id: I80b43dae137cbbb912ec0fcc4e401de16a9b44a1
2012-02-24 12:53:08 -08:00
Andrew Flynn 7747119b40 am 91685094: am 79b79dd5: Remove unused sw600dp/ strings.
* commit '9168509491a5d052f28af71b99f6980ef859ca4d':
  Remove unused sw600dp/ strings.
2012-02-24 11:13:37 -08:00
Andrew Flynn 79b79dd579 Remove unused sw600dp/ strings.
Change-Id: I92f823d475c9a8425f3930e016b72f1df2132836
2012-02-24 09:37:17 -08:00
Winson Chung bd7f37acba Fixing issue where dragview was jagged when scaled.
Change-Id: Ibc4b6e023428f39464f015726a22c2ec5130e63b
2012-02-23 17:55:08 -08:00
Winson Chung 81a05a1366 Merge "Tweaking pickup animation, vibration and removing glow from drag view." 2012-02-23 16:47:06 -08:00
Michael Jurka b89ba237b9 Merge "Cancel scroll indicator fade during allapps/workspace transition" 2012-02-23 16:39:12 -08:00
Winson Chung 61b0c69d3f Tweaking pickup animation, vibration and removing glow from drag view.
Change-Id: I8c9741e8b63ca9a0fc4af90e178dbb02fa912d83
2012-02-23 16:33:08 -08:00
Michael Jurka a8352d22af Cancel scroll indicator fade during allapps/workspace transition
Change-Id: I8661c17adbf0a129730b44641930fb68ba9afed6
2012-02-23 16:28:37 -08:00
Winson Chung 88f334571f Lowering long press time for workspace items.
Change-Id: I6a3b0e13681f07d0e50bf2dcec777037c4ef51a5
2012-02-23 15:23:56 -08:00
Winson Chung 72d598400d Animating the widget previews on drag from AppsCustomize.
Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
2012-02-23 12:21:12 -08:00
Winson Chung 867ca62c0e Fading out workspace when dragging to higlight dragged object.
Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
2012-02-23 10:32:03 -08:00
Adam Cohen 7a326648c5 Fixing issue where widget preloading not being cleaned up on failed drop
-> issue 6046370

Change-Id: Iee33fc22ae0bfe012fe33efd5b358a2199fdf424
2012-02-22 12:03:22 -08:00
Winson Chung 46569ae107 Merge "Allow touches to fall through AllApps nearing end of transition (Bug: 5991846, 6016062, 5991846)" 2012-02-17 15:10:12 -08:00
Winson Chung 7044272f18 Allow touches to fall through AllApps nearing end of transition (Bug: 5991846, 6016062, 5991846)
- Also updating mTransitionProgress so control when drops succeed

Change-Id: I2f672c64f0a87249dcf7d254f963b8b2710c849f
2012-02-17 11:14:29 -08:00
Winson Chung 46353de2ab Updating shared preferences on background thread to prevent StrictMode violations when dismissing clings (Bug 5972880)
Change-Id: I56703e0237d54029fafbb04730ab126637762f13
2012-02-16 14:05:54 -08:00
Justin Ho bbbb2b94b5 am cfa1a75b: Merge "Part of fixing issue #6006757: Keyboard dismissal lags" into ics-mr1
* commit 'cfa1a75bd4edb3e3a9d93c8b02ab6a1ecb74e79b':
  Part of fixing issue #6006757: Keyboard dismissal lags
2012-02-16 09:25:05 -08:00
Justin Ho cfa1a75bd4 Merge "Part of fixing issue #6006757: Keyboard dismissal lags" into ics-mr1 2012-02-16 09:22:56 -08:00
Michael Jurka bed61d22bd Revert "Revert "Speed up All Apps -> Workspace transition""
- also, undo enabling hardware layers for
    scroll indicator, which could have caused
    slowness
- fix bug where scroll indicator was not seen
    after the first visit to all apps
- eliminate a some needless hardware layer redraws
- making items under All Apps invisible when we're
    in All Apps
- making workspace spaces invisible if their alpha is 0
    to prevent more hardware layer rebuilding

This reverts commit 9753d13c7b.

Change-Id: Ib908ae0b456b2d4b8a171991a95f20aea4749da1
2012-02-15 20:22:50 -08:00
Dianne Hackborn 98b69dc64f Part of fixing issue #6006757: Keyboard dismissal lags
Have launcher delay a little before rebuilding its layers, to give
the input system time to do the communication it needs with it before
blocked on that work.

Change-Id: Ib6f533a51c611b8c971c9ca2a1da8d53c8952b44
2012-02-15 18:29:29 -08:00
Andrew Flynn a1ae3c0992 Merge "Fixing issue where smallest screen dim was not taking dpi into account." into ics-scoop 2012-02-15 08:49:13 -08:00
Adam Cohen ef3dd6efe0 Fixing bug where widget preview wasn't fully updated upon drop
-> The prebound widget is now added to the DragLayer to ensure
   that it goes through all necessary measure/layout/attach etc.

Change-Id: I53ca32e88fcbc2211d2747c3b067816c0d518e30
2012-02-14 20:55:35 -08:00
Michael Jurka fd5892cebd am 2a5bc113: DO NOT MERGE
* commit '2a5bc113b49b79c49281d5f8d8c1421d663d2ee4':
  DO NOT MERGE
2012-02-14 20:12:11 -08:00
Winson Chung 15cf5093ce Fixing issue where smallest screen dim was not taking dpi into account.
Change-Id: I1efacf693200f490c506050ce36403db224b5846
2012-02-14 17:54:44 -08:00
Michael Jurka 2a5bc113b4 DO NOT MERGE
Fixing animation glitch

Bug #6015450

Change-Id: Iebbce7c07816b51b0fb98cd5b83ca2af2e5f76d4
2012-02-14 17:46:22 -08:00
Adam Cohen 038085598c Merge "Fixing annoying bug where widget would drop to side page" 2012-02-14 16:45:40 -08:00