Make icon size are the same in factory reset account list.
Change-Id: I74779471a3fb7b99b515203ddba3aca6b0cd588b Fix: 31791627 Test: Visual inspection
This commit is contained in:
@@ -37,6 +37,7 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -265,10 +266,9 @@ public class MasterClear extends OptionsMenuFragment {
|
||||
icon = context.getPackageManager().getDefaultActivityIcon();
|
||||
}
|
||||
|
||||
TextView child = (TextView)inflater.inflate(R.layout.master_clear_account,
|
||||
contents, false);
|
||||
child.setText(account.name);
|
||||
child.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
|
||||
View child = inflater.inflate(R.layout.master_clear_account, contents, false);
|
||||
((ImageView) child.findViewById(android.R.id.icon)).setImageDrawable(icon);
|
||||
((TextView) child.findViewById(android.R.id.title)).setText(account.name);
|
||||
contents.addView(child);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user