diff options
author | Joe Onorato <joeo@android.com> | 2009-12-15 15:05:31 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-15 15:05:31 -0800 |
commit | 752a1244beaac62820fecd9a91bcbd9deb4e1d21 (patch) | |
tree | 1305a79855363b04b8f0dc42d29eb3f1ec1104b0 /src | |
parent | 3425134204ad9dab032821016df40d4efda92f1a (diff) | |
parent | 34a0e1b00b9baeff19e94f1ee35dd890063489d2 (diff) | |
download | android_packages_apps_Trebuchet-752a1244beaac62820fecd9a91bcbd9deb4e1d21.tar.gz android_packages_apps_Trebuchet-752a1244beaac62820fecd9a91bcbd9deb4e1d21.tar.bz2 android_packages_apps_Trebuchet-752a1244beaac62820fecd9a91bcbd9deb4e1d21.zip |
am 34a0e1b0: fix bug 2326478
Merge commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2'
* commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2':
fix bug 2326478
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index f07810dfc..50be60605 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -179,6 +179,7 @@ public final class Launcher extends Activity private boolean mWorkspaceLoading = true; + private boolean mPaused = true; private boolean mRestoring; private boolean mWaitingForResult; @@ -237,6 +238,9 @@ public final class Launcher extends Activity // For handling default keys mDefaultKeySsb = new SpannableStringBuilder(); Selection.setSelection(mDefaultKeySsb, 0); + + IntentFilter filter = new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); + registerReceiver(mCloseSystemDialogsReceiver, filter); } private void checkForLocaleChange() { @@ -393,8 +397,7 @@ public final class Launcher extends Activity protected void onResume() { super.onResume(); - IntentFilter filter = new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); - registerReceiver(mCloseSystemDialogsReceiver, filter); + mPaused = false; if (mRestoring) { mWorkspaceLoading = true; @@ -409,7 +412,6 @@ public final class Launcher extends Activity dismissPreview(mPreviousView); dismissPreview(mNextView); mDragController.cancelDrag(); - unregisterReceiver(mCloseSystemDialogsReceiver); } @Override @@ -908,6 +910,8 @@ public final class Launcher extends Activity dismissPreview(mPreviousView); dismissPreview(mNextView); + + unregisterReceiver(mCloseSystemDialogsReceiver); } @Override @@ -1730,7 +1734,11 @@ public final class Launcher extends Activity * - from center screen * - from other screens * - Home from all apps + * - from center screen + * - from other screens * - Back from all apps + * - from center screen + * - from other screens * - Launch app from workspace and quit * - with back * - with home @@ -1751,7 +1759,7 @@ public final class Launcher extends Activity * - On all apps, power off * - Launch an app and turn off the screen while in that app * - Go back with home key - * - Go back with back key + * - Go back with back key TODO: make this not go to workspace * - From all apps * - From workspace */ @@ -1886,13 +1894,9 @@ public final class Launcher extends Activity String reason = intent.getStringExtra("reason"); if (!"homekey".equals(reason)) { boolean animate = true; - /* - if ("globalactions".equals(reason)) { - // For some reason (probably the fading), this animation is - // choppy, so don't show it. + if (mPaused || "lock".equals(reason)) { animate = false; } - */ closeAllApps(animate); } } |