Fix 5043759, cancel widget resize when screen turned off

Change-Id: I363238cbcae859060541d8c8cbf558fcc87e9272
This commit is contained in:
Adam Cohen
2011-07-19 20:50:27 -07:00
parent 9efd4a2a36
commit bec6ac5bb3
+2
View File
@@ -1131,6 +1131,7 @@ public final class Launcher extends Activity
final String action = intent.getAction();
if (Intent.ACTION_SCREEN_OFF.equals(action)) {
mUserPresent = false;
mDragLayer.clearAllResizeFrames();
updateRunning();
// Reset AllApps to it's initial state
@@ -1162,6 +1163,7 @@ public final class Launcher extends Activity
public void onDetachedFromWindow() {
super.onDetachedFromWindow();
mVisible = false;
mDragLayer.clearAllResizeFrames();
if (mAttached) {
unregisterReceiver(mReceiver);