Commit Graph

230 Commits

Author SHA1 Message Date
Joe Onorato
752a1244be am 34a0e1b0: fix bug 2326478
Merge commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2'

* commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2':
  fix bug 2326478
2009-12-15 15:05:31 -08:00
Bjorn Bringert
3425134204 Bind converted widgets directly.
Before, Launcher2 sent an intent to
com.android.settings/com.android.settings.LauncherAppWidgetBinder
to bind any converted appwidgets. That doesn't seem to work anymore,
and is not how non-converted widgets are bound. Changing to
binding the widgets directly fixes a problem where the search
widget was not bound after an upgrade from Eclair to Master.

The search widget conversion problem was introduced in
Change I85d64defe155c0cad97fafef6a3db62c6cab504a
where I got rid of the built-in search widget.

This patch may break conversion of legacy built-in
clock and photo widgets, but I believe that was already broken
because of the non-functional widget binding mechanism.

Bug: http://b/2322160
2009-12-15 13:33:11 +00:00
Joe Onorato
34a0e1b00b fix bug 2326478 2009-12-14 17:44:51 -08:00
Romain Guy
1cc7f41015 Remove unused class from Launcher2. 2009-12-14 14:18:51 -08:00
Joe Onorato
bdc5a45de6 am 3ecbd81f: Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView.removeApp
Merge commit '3ecbd81f99d2005172f431d2bf207b698154fe29' into eclair-mr2

* commit '3ecbd81f99d2005172f431d2bf207b698154fe29':
  Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView$RolloRS.removeApp
2009-12-13 12:23:49 -08:00
Joe Onorato
3ecbd81f99 Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView$RolloRS.removeApp 2009-12-11 13:38:54 -08:00
Joe Onorato
15237db04c am 8cf34293: Launcher2 - This might fix the missing app problem and the crash in removeApp.
Merge commit '8cf34293dc2f078bf023ac77d007f5182f9b9357' into eclair-mr2

* commit '8cf34293dc2f078bf023ac77d007f5182f9b9357':
  Launcher2 - This might fix the missing app problem and the crash in removeApp.
2009-12-11 11:31:39 -08:00
Joe Onorato
8cf34293dc Launcher2 - This might fix the missing app problem and the crash in removeApp.
This marks the apps list as dirty by default.  Usually, because of how long
it takes the loader thread to run, the apps list comes in after the surface
has been initialized.  However, if the surface isn't around yet when setApps
is called, then setApps won't set mRollo.mAppsDirty because mRollo is null.
The extra null check is necessary for the normal case when mAllAppsList isn't
ready yet when the surface comes in.
2009-12-11 10:59:51 -08:00
Joe Onorato
616e3a0892 am 8eea3914: fix 2315821 and 2315729 - problems caused because the apps list could become unsynchronized with the list of icons.
Merge commit '8eea3914a012eec703b5c7829361bbc6e356dc66' into eclair-mr2

* commit '8eea3914a012eec703b5c7829361bbc6e356dc66':
  fix 2315821 and 2315729 - problems caused because the apps list could become
2009-12-10 17:39:36 -08:00
Bjorn Bringert
7984c9496b Get rid of the built-in search widget in Launcher2
Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
2009-12-09 21:48:38 +00:00
Joe Onorato
8eea3914a0 fix 2315821 and 2315729 - problems caused because the apps list could become
unsynchronized with the list of icons.
2009-12-09 13:01:06 -08:00
Joe Onorato
5a7970b536 am af5b4cb2: Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left
Merge commit 'af5b4cb27709e2e3d6c419e81ac87363e701ce5d' into eclair-mr2

* commit 'af5b4cb27709e2e3d6c419e81ac87363e701ce5d':
  Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left
2009-12-08 17:56:10 -08:00
Joe Onorato
af5b4cb277 Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left 2009-12-08 17:51:22 -08:00
Joe Onorato
546917a5ad am a276fc59: Fix 2306862 - Launcher2 crashed: in libs/rs. Uploading texture without a context.
Merge commit 'a276fc59f535a2fb05701e8f49bb7adf4cefb3b2' into eclair-mr2

* commit 'a276fc59f535a2fb05701e8f49bb7adf4cefb3b2':
  Fix 2306862 - Launcher2 crashed: in libs/rs.  Uploading texture without a context.
2009-12-08 17:19:08 -08:00
Joe Onorato
a276fc59f5 Fix 2306862 - Launcher2 crashed: in libs/rs. Uploading texture without a context.
turns off some logging and fixes latent bugs that this uncovered where we were
accessing renderscript while there was no context.
2009-12-08 17:02:02 -08:00
Joe Onorato
199c4825e2 am bf173f11: Fix 2304151 - crash while installing apps
Merge commit 'bf173f11d27719af7a3c480ce84bb5b63e191fba' into eclair-mr2

* commit 'bf173f11d27719af7a3c480ce84bb5b63e191fba':
  Fix 2304151 - crash while installing apps
2009-12-08 13:36:48 -08:00
Joe Onorato
bf173f11d2 Fix 2304151 - crash while installing apps
It was happening if you had previously uninstalled an app.
2009-12-08 13:29:38 -08:00
Romain Guy
f8e6a80acd Let the user click the dots during a scroll on Home.
This allows faster scroll across Home. Also remove dead code.
2009-12-07 18:01:15 -08:00
Joe Onorato
7e4ed99eb0 Fix 2300792 - All apps zooming when you come back from an app.
This makes it so we're only listening for the CLOSE_SYSTEM_DIALOGS
broadcast while we're between onResume and onPause.
2009-12-03 13:10:49 -08:00
Joe Onorato
13724ea607 Make the launcher send the position of the icon that's launching an intent. 2009-12-02 21:33:36 -08:00
Romain Guy
7eb9e5e925 Upgrade Home db to upgrade contacts shortcut to the quick contact action
Change-Id: Icb5606e340a6eafc06ffd1be4bbe3d4f988376d1
2009-12-02 20:10:07 -08:00
Joe Onorato
b0c27f254a Bug 2290800 - Use a collator to sort the app labels.
SHAME ON ME for using String.compareTo().
2009-12-01 16:20:30 -08:00
Jason Sams
eb5615d1af Rename special dump properity so we can set it on user builds. 2009-11-30 11:50:10 -08:00
Joe Onorato
f0be2134e5 Fix 2275513 - Icons don't update on package update
Also reuses the BubbleText object, which was being recreated for no reason.
2009-11-24 19:34:29 -05:00
Joe Onorato
b20612133b Fix bug 2248173 - all apps animates out when you return home. 2009-11-24 16:13:54 -05:00
Bjorn Bringert
98047dc39f Clear search widget animation in Launcher.onResume()
Before, Launcher relied on a callback to a SearchManager.OnCancelListener to clear the search widget
animation. However, that doesn't get called if some other app opens the search dialog
before the Launcher is reopened. This change clears the animation in onResume().

Should fix http://b/issue?id=2246760
2009-11-21 22:08:04 +00:00
Bjorn Bringert
600f188702 Guard against null parent in Launcher2.Search.clearAnimation()
Sometimes clearAnimation() is called on the search widget
when it has no parent, e.g. when it being removed from the
home screen. This caused an NPE, because clearAnimation()
called invalidate() on the parent.

This is a partial fix for: http://b/issue?id=2246760
2009-11-21 21:38:05 +00:00
Joe Onorato
418928e9d0 Fix bug 2223769 - Uninstalling app causes NPE.
The check for whether there is anything in these lists should be sufficient.  The other
variables don't need to also be checked.
2009-11-19 18:05:36 -08:00
Joe Onorato
cc19a53d61 Fix 2271080 - .lang.IllegalArgumentException: no dialog with id 1 was ever shown via
Activity#showDialog on CreateShortcut

I'm not sure how this can happen, but I think it's okay to just
drop the exception.  It's all just trying to clean up anyway.
2009-11-19 14:20:57 -08:00
Joe Onorato
14f122bf84 Fix bug 2271894 - Odd animation when press home button from app that wasn't in center home screen
Now:
 - When you're on the workspace and you press home, it animates back to the middle
 - When you're in all apps and you press home, all apps animates out and the workspace
   doesn't animate to the middle (it just jumps there)
 - When you're in an app and you press home, it doesn't animate to the middle
 - When you're in an app and you press back, it still goes to the page you were on.

Don't look at the evil hack to make it move without animating.
2009-11-19 14:06:36 -08:00
Joe Onorato
88ec0990c6 Fix 2274291 - back key doesn't go from all apps to workspace 2009-11-19 13:16:06 -08:00
Joe Onorato
61597bd5fd Fix 2271141 - Pressing the bottom corner of the screen when the applications menu is visible will
switch the home screen
2009-11-19 12:51:57 -08:00
Joe Onorato
0c4513e559 This might fix bug 2262272 - Apps list empty
I'm not sure how .added is empty, but the only way I see for this
to happen is if it is, so use .data instead, which ought to be the
same.
2009-11-19 12:24:48 -08:00
Joe Onorato
a5c32d6ecc Fix bugs 226264 and 2265943 - Home stopped responding to touch, but all-apps & notification panel
still work

I knew it was a problem with mWaitingForResult, which I'm still not convinced we need, but
Jeff Sharkey was able to find repro steps, so he's my new hero.  The steps were:
  1. Open add menu (long pressing or menu > add)
  2. Turn off the screen
  3. Turn back on & unlock
  4. Poof.
The problem was that when we get ACTION_CLOSE_SYSTEM_DIALOGS intents, we're dismissing the dialogs,
not canceling them.  I think we actually want to cancel them, but there's no easy way to do that
with the Activity class, so just clear mWaitingForResult by hand in closeSystemDialogs().
2009-11-19 10:28:49 -08:00
Joe Onorato
247226b1d5 Fix bug 2266095 - all apps animates out when you return home by hitting back
We needed to check that they haven't exited on the down event.
2009-11-18 17:43:22 -08:00
Joe Onorato
39bfc13a77 Add more logging for bugs 2262649, 2262272 and 2265943. 2009-11-18 17:22:01 -08:00
Joe Onorato
be38609f87 Add a lot of logging that can be seen by doing adb shell setprop launcher2.dumpstate 1 and presssing volume down 2009-11-17 18:04:52 -08:00
Joe Onorato
478730f3c1 fix 2261526 - Trackball doesn't work in 3D all-apps if you opened it using trackball 2009-11-16 18:54:43 -08:00
Joe Onorato
1db7a972bf Fix 2260199 - App icons placed in folder widget are doubled after rebooting phone.
I don't know why I did this piecemeal instead of just fixing it for widgets items and folders all at
once.
2009-11-16 18:32:22 -08:00
Joe Onorato
0d44e9482b Fix bug 2261637 - Workspace previews home screens on long pressing
at the bottom of app drawer

This includes some contortions to get it not to perform the vibrate
haptic feedback then.

(By the way, it appears that we're vibrating on the add context menu
long press, so also do it when when we show the previews.
2009-11-16 18:20:51 -08:00
Jason Sams
5612e4321e Fix duplicated text when returning home from an app that hid the status bar and launcher2 was killed. 2009-11-16 14:18:07 -08:00
Romain Guy
28c706b2dd Use the appropriate flat icon for the folder menu in the Add dialog.
Change-Id: Idb7ae2a50338f56317dd9f57c96129904b241e3a
2009-11-13 16:18:14 -08:00
Android (Google) Code Review
06d12abf63 Merge change I464c055a into eclair
* changes:
  Bug 2244530 - Disable the attempt at not flickering.  It's interfering with the frame rate while rollo animates in.
2009-11-12 18:58:03 -08:00
Romain Guy
f2826c7e21 Remove "Configure..." option from wallpaper chooser.
Change-Id: Iae9719dc3197ea0ee8e7637456b9d76d9ce8622b
2009-11-12 18:38:17 -08:00
Joe Onorato
464c055a7a Bug 2244530 - Disable the attempt at not flickering. It's interfering with the frame rate while rollo animates in. 2009-11-12 18:19:47 -08:00
Jason Sams
e26d9fc287 Update AllApps to defered surface attachment for RS. 2009-11-12 15:09:21 -08:00
Joe Onorato
68ba5ca5d7 Keep banging on the launcher locks up bug. This moves the
delayed zoom stuff into one place, so it should be out of
sync less.
2009-11-12 14:23:43 -08:00
Joe Onorato
24b6fd854f Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen 2009-11-12 13:49:09 -08:00
Joe Onorato
cb75f366cc Fix bug 2258128 - homescreen on Passion unresponsive while still not leaking the contexts. 2009-11-12 13:28:09 -08:00
Romain Guy
e47f55c30b Improve desktop scrolling from the previews switcher.
Change-Id: Iee05120b4363c07294f665f45f561e9d9361ccaa
2009-11-11 19:21:22 -08:00