Move Home settings to Default apps

Change-Id: I2ac7f9dd2c1c505ff3163b2a90c574a360b9409c
This commit is contained in:
Jason Monk
2016-01-22 14:28:02 -05:00
parent 1b4e746a7f
commit 7ea14c5625
8 changed files with 204 additions and 87 deletions

View File

@@ -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;
}