Move Home settings to Default apps
Change-Id: I2ac7f9dd2c1c505ff3163b2a90c574a360b9409c
This commit is contained in:
@@ -187,14 +187,14 @@ public final class SmsDefaultDialog extends AlertActivity implements
|
||||
Item item = ((Item) getItem(position));
|
||||
LayoutInflater inflater = getLayoutInflater();
|
||||
View view = inflater.inflate(R.layout.app_preference_item, parent, false);
|
||||
TextView textView = (TextView) view.findViewById(R.id.app_label);
|
||||
TextView textView = (TextView) view.findViewById(android.R.id.title);
|
||||
textView.setText(item.label);
|
||||
if (position == mSelectedIndex) {
|
||||
view.findViewById(R.id.default_label).setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
view.findViewById(R.id.default_label).setVisibility(View.GONE);
|
||||
}
|
||||
ImageView imageView = (ImageView)view.findViewById(R.id.app_image);
|
||||
ImageView imageView = (ImageView)view.findViewById(android.R.id.icon);
|
||||
imageView.setImageDrawable(item.icon);
|
||||
return view;
|
||||
}
|
||||
|
Reference in New Issue
Block a user