From 9ffb5439b6e2ffb972086fd237fb3ded3d29ab50 Mon Sep 17 00:00:00 2001 From: Romain Guy <> Date: Tue, 24 Mar 2009 21:04:15 -0700 Subject: [PATCH] Automated import from //branches/donutburger/...@141885,141885 --- src/com/android/launcher/Launcher.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java index d64669b2ac..6ac4a57633 100644 --- a/src/com/android/launcher/Launcher.java +++ b/src/com/android/launcher/Launcher.java @@ -39,7 +39,6 @@ import android.content.res.Resources; import android.content.res.Configuration; import android.database.ContentObserver; import android.graphics.Bitmap; -import android.graphics.BitmapFactory; import android.graphics.Rect; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; @@ -63,19 +62,15 @@ import android.text.method.TextKeyListener; import android.util.Log; import static android.util.Log.*; import android.view.Display; -import android.view.Gravity; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; -import android.view.WindowManager; import android.view.View.OnLongClickListener; import android.view.inputmethod.InputMethodManager; -import android.widget.AdapterView; import android.widget.EditText; -import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget.GridView; @@ -315,8 +310,6 @@ public final class Launcher extends Activity implements View.OnClickListener, On // For example, the user would PICK_SHORTCUT for "Music playlist", and we // launch over to the Music app to actually CREATE_SHORTCUT. - Resources res = getResources(); - if (resultCode == RESULT_OK && mAddItemCellInfo != null) { switch (requestCode) { case REQUEST_PICK_APPLICATION: @@ -1699,8 +1692,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On private class CreateShortcut implements DialogInterface.OnClickListener, DialogInterface.OnCancelListener { private AddAdapter mAdapter; - private ListView mList; - + Dialog createDialog() { mWaitingForResult = true; @@ -1710,7 +1702,6 @@ public final class Launcher extends Activity implements View.OnClickListener, On builder.setTitle(getString(R.string.menu_item_add_item)); builder.setAdapter(mAdapter, this); - builder.setView(mList); builder.setInverseBackgroundForced(true); AlertDialog dialog = builder.create();