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.
This commit is contained in:
Joe Onorato
2009-11-18 17:43:22 -08:00
parent 39bfc13a77
commit 247226b1d5
+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);