am 247226b1: Fix bug 2266095 - all apps animates out when you return home by hitting back

Merge commit '247226b1d57dfc6571bdb7c83787e63f7409f2ab' into eclair-mr2

* commit '247226b1d57dfc6571bdb7c83787e63f7409f2ab':
  Fix bug 2266095 - all apps animates out when you return home by hitting back
This commit is contained in:
Joe Onorato
2009-11-18 18:01:40 -08:00
committed by Android Git Automerger
+1 -1
View File
@@ -1332,7 +1332,7 @@ public final class Launcher extends Activity
} else if (event.getAction() == KeyEvent.ACTION_UP) {
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_BACK:
if (!event.isCanceled()) {
if (event.isTracking() && !event.isCanceled()) {
mWorkspace.dispatchKeyEvent(event);
if (isAllAppsVisible()) {
closeAllApps(true);