Commit Graph

16456 Commits

Author SHA1 Message Date
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
Adam Cohen 82ac8a2488 Fixing annoying bug where widget would drop to side page
Change-Id: I7e8bf298e01666fe29abc322b45f2538569c5ed9
2012-02-14 16:27:49 -08:00
Winson Chung 78034235d1 Merge "Minimizing number of db calls when installing shortcut externally." 2012-02-14 14:59:36 -08:00
Winson Chung 2210d2ad0c Merge "Animating the drag view scale up and down when dragging items." 2012-02-14 14:59:30 -08:00
Winson Chung a61dc4290d Fixing issue where smallest screen dim was not taking dpi into account.
Change-Id: I1efacf693200f490c506050ce36403db224b5846
2012-02-14 14:45:57 -08:00
Winson Chung 54d9fc2830 Merge "Revert "Speed up All Apps -> Workspace transition"" 2012-02-14 13:38:35 -08:00
Michael Jurka 9753d13c7b Revert "Speed up All Apps -> Workspace transition"
Temp fix for 5976264

This reverts commit 9433fa7eba.

Change-Id: Ic49ffc818b9b233b3717b52a5f77eaac1e001f5b
2012-02-14 13:36:59 -08:00
Winson Chung a308e0540a DO NOT MERGE
Reverting: Change I3a8849a5: Cleaning up extra line related to icon density change.

Change-Id: I5e8106d0f77545b80a0b21d4230cf826439ac371
2012-02-14 09:34:52 -08:00
Adam Cohen 55952e2f53 Merge "Fixing bugs with new widget adding" 2012-02-13 19:51:31 -08:00
Adam Cohen 1b36dc3f2b Fixing bugs with new widget adding
-> widget ids were being reused in some cases
-> widgets could be added before springloaded mode was entered

Change-Id: Iaf3bffc49d4ec2de4b63db1b5cfb52b8544e9c2b
2012-02-13 19:50:10 -08:00
Winson Chung 7bd1bbb509 Animating the drag view scale up and down when dragging items.
Change-Id: Ic97d74a14964c6bdc23305b2d378b13a1f2e3664
2012-02-13 19:05:25 -08:00
Winson Chung d83f5f4db3 Reverting: Change I3a8849a5: Cleaning up extra line related to icon density change.
Change-Id: I5e8106d0f77545b80a0b21d4230cf826439ac371
2012-02-13 14:29:05 -08:00
Ramanan Rajeswaran 08fc2344a4 am e25db70b: am d1dbfe35: Revert "Should be getting launcher icon DPI from ActivityManager."
* commit 'e25db70be9743be72bf05ce0c8f7c3b80b3294c0':
  Revert "Should be getting launcher icon DPI from ActivityManager."
2012-02-13 13:58:14 -08:00
Ramanan Rajeswaran d1dbfe356f Revert "Should be getting launcher icon DPI from ActivityManager."
This reverts commit af23500cf9.
2012-02-13 13:54:42 -08:00
Adam Cohen ed66b2bac7 Improving widget transitions:
-> When a widget has no configuration activity, we bind
   and inflate it when the user picks it up. This allows
   us to smoothly transition between it's preview and
   some actual state of the widget when it is dropped.
-> When a widget has a configuration activity, we delay
   the above process until the configuration activity
   has been run at which time we transition between
   the preview and the actual widget.

Change-Id: I5265cd98400d70e5e75c3dcd21e322ed0b352d7b
2012-02-13 13:30:32 -08:00
Winson Chung b7bea81c7a Minimizing number of db calls when installing shortcut externally.
- Fixing case where the drag view was persisting after drag failed from AllApps

Change-Id: Ia2439462b93f196f3fcba73814e0994e54600e70
2012-02-13 13:26:13 -08:00
Winson Chung a1cdab0392 Reverting: "Animating the drag view scale up and down when dragging items."
Change-Id: I133ff2631834a4b97e1e4750fb7c07793ddeba69
2012-02-13 13:03:52 -08:00
Ramanan Rajeswaran 6e2dae9906 Merge "Cleaning up extra line related to icon density change." into ics-scoop 2012-02-13 12:37:02 -08:00
Winson Chung 35003b7df7 Cleaning up extra line related to icon density change.
Change-Id: I3a8849a5800af1f04f097c4ce55ecf5d97292f4c
2012-02-13 12:28:29 -08:00
Winson Chung af23500cf9 Should be getting launcher icon DPI from ActivityManager.
Change-Id: Iec1b375568b421220fdbf08de6e7a697d0488e24
2012-02-13 12:27:49 -08:00