Merge "Removed icon in Alert dialog header." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
b621e2030d
@@ -17,6 +17,9 @@
|
|||||||
package com.android.internal.app;
|
package com.android.internal.app;
|
||||||
|
|
||||||
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
|
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
|
||||||
|
|
||||||
|
import com.android.internal.R;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
@@ -32,10 +35,11 @@ import android.view.KeyEvent;
|
|||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.view.ViewGroup.LayoutParams;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.view.ViewGroup.LayoutParams;
|
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.CheckedTextView;
|
import android.widget.CheckedTextView;
|
||||||
@@ -48,9 +52,6 @@ import android.widget.ListView;
|
|||||||
import android.widget.ScrollView;
|
import android.widget.ScrollView;
|
||||||
import android.widget.SimpleCursorAdapter;
|
import android.widget.SimpleCursorAdapter;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.AdapterView.OnItemClickListener;
|
|
||||||
|
|
||||||
import com.android.internal.R;
|
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
|
|
||||||
@@ -403,12 +404,10 @@ public class AlertController {
|
|||||||
|
|
||||||
mIconView = (ImageView) mWindow.findViewById(R.id.icon);
|
mIconView = (ImageView) mWindow.findViewById(R.id.icon);
|
||||||
if (hasTextTitle) {
|
if (hasTextTitle) {
|
||||||
|
|
||||||
/* Display the title if a title is supplied, else hide it */
|
/* Display the title if a title is supplied, else hide it */
|
||||||
mTitleView = (TextView) mWindow.findViewById(R.id.alertTitle);
|
mTitleView = (TextView) mWindow.findViewById(R.id.alertTitle);
|
||||||
|
|
||||||
mTitleView.setText(mTitle);
|
mTitleView.setText(mTitle);
|
||||||
mIconView.setImageResource(R.drawable.ic_dialog_menu_generic);
|
|
||||||
|
|
||||||
/* Do this last so that if the user has supplied any
|
/* Do this last so that if the user has supplied any
|
||||||
* icons we use them instead of the default ones. If the
|
* icons we use them instead of the default ones. If the
|
||||||
@@ -688,7 +687,7 @@ public class AlertController {
|
|||||||
public final Context mContext;
|
public final Context mContext;
|
||||||
public final LayoutInflater mInflater;
|
public final LayoutInflater mInflater;
|
||||||
|
|
||||||
public int mIconId = -1;
|
public int mIconId = 0;
|
||||||
public Drawable mIcon;
|
public Drawable mIcon;
|
||||||
public CharSequence mTitle;
|
public CharSequence mTitle;
|
||||||
public View mCustomTitleView;
|
public View mCustomTitleView;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user