diff options
author | Gilles Debunne <debunne@google.com> | 2010-10-04 15:34:43 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-04 15:34:43 -0700 |
commit | b621e2030d86356af6e8f37e9aed339a5f2ea52b (patch) | |
tree | 234547a8013b375558a71dce161e10db5207986d /core | |
parent | 368733b204805cfa716897b09153350a70dca3f3 (diff) | |
parent | 076c7fbeda5c4205e3e52fbc6110ab1c4b342afe (diff) | |
download | frameworks_base-b621e2030d86356af6e8f37e9aed339a5f2ea52b.zip frameworks_base-b621e2030d86356af6e8f37e9aed339a5f2ea52b.tar.gz frameworks_base-b621e2030d86356af6e8f37e9aed339a5f2ea52b.tar.bz2 |
Merge "Removed icon in Alert dialog header." into gingerbread
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/app/AlertController.java | 13 | ||||
-rw-r--r-- | core/res/res/drawable-hdpi/ic_dialog_menu_generic.png | bin | 5541 -> 0 bytes | |||
-rwxr-xr-x | core/res/res/drawable-mdpi/ic_dialog_menu_generic.png | bin | 1187 -> 0 bytes |
3 files changed, 6 insertions, 7 deletions
diff --git a/core/java/com/android/internal/app/AlertController.java b/core/java/com/android/internal/app/AlertController.java index 107b145..81ca912 100644 --- a/core/java/com/android/internal/app/AlertController.java +++ b/core/java/com/android/internal/app/AlertController.java @@ -17,6 +17,9 @@ package com.android.internal.app; import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; + +import com.android.internal.R; + import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; @@ -32,10 +35,11 @@ import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.view.ViewGroup.LayoutParams; import android.view.Window; import android.view.WindowManager; -import android.view.ViewGroup.LayoutParams; import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckedTextView; @@ -48,9 +52,6 @@ import android.widget.ListView; import android.widget.ScrollView; import android.widget.SimpleCursorAdapter; import android.widget.TextView; -import android.widget.AdapterView.OnItemClickListener; - -import com.android.internal.R; import java.lang.ref.WeakReference; @@ -403,12 +404,10 @@ public class AlertController { mIconView = (ImageView) mWindow.findViewById(R.id.icon); if (hasTextTitle) { - /* Display the title if a title is supplied, else hide it */ mTitleView = (TextView) mWindow.findViewById(R.id.alertTitle); mTitleView.setText(mTitle); - mIconView.setImageResource(R.drawable.ic_dialog_menu_generic); /* Do this last so that if the user has supplied any * icons we use them instead of the default ones. If the @@ -688,7 +687,7 @@ public class AlertController { public final Context mContext; public final LayoutInflater mInflater; - public int mIconId = -1; + public int mIconId = 0; public Drawable mIcon; public CharSequence mTitle; public View mCustomTitleView; diff --git a/core/res/res/drawable-hdpi/ic_dialog_menu_generic.png b/core/res/res/drawable-hdpi/ic_dialog_menu_generic.png Binary files differdeleted file mode 100644 index ef8a877..0000000 --- a/core/res/res/drawable-hdpi/ic_dialog_menu_generic.png +++ /dev/null diff --git a/core/res/res/drawable-mdpi/ic_dialog_menu_generic.png b/core/res/res/drawable-mdpi/ic_dialog_menu_generic.png Binary files differdeleted file mode 100755 index de07bda..0000000 --- a/core/res/res/drawable-mdpi/ic_dialog_menu_generic.png +++ /dev/null |