code cleanup, preparing for spring-loaded adding to screens

Change-Id: Ic52b8df2b4c4998272fbfe2b1b195c177cac9a23
This commit is contained in:
Michael Jurka
2010-11-23 16:23:58 -08:00
parent f32e5e842e
commit af91de06b9
5 changed files with 85 additions and 113 deletions
@@ -16,9 +16,7 @@
package com.android.launcher2;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import com.android.launcher.R;
import android.content.ComponentName;
import android.content.Context;
@@ -30,7 +28,9 @@ import android.view.animation.AnimationUtils;
import android.widget.Checkable;
import android.widget.TextView;
import com.android.launcher.R;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
/**
* An implementation of PagedView that populates the pages of the workspace
@@ -43,9 +43,6 @@ public class AllAppsPagedView extends PagedView
private static final String TAG = "AllAppsPagedView";
private static final boolean DEBUG = false;
private static final int MENU_DELETE_APP = 1;
private static final int MENU_APP_INFO = 2;
private Launcher mLauncher;
private DragController mDragController;
@@ -199,7 +196,7 @@ public class AllAppsPagedView extends PagedView
}
private void setupDragMode() {
mLauncher.getWorkspace().shrinkToBottomVisible();
mLauncher.getWorkspace().shrink(Workspace.ShrinkState.BOTTOM_VISIBLE);
ApplicationInfoDropTarget infoButton =
(ApplicationInfoDropTarget) mLauncher.findViewById(R.id.info_button);