Remove dependency on ChooserActivity resources
Fork the needed resources. Bug: 292222314 Test: mp sysuig, view wifi QR code screen Change-Id: I69fabb8c293e8e8819d93a61df39549b9667c0fa
This commit is contained in:
@@ -223,11 +223,9 @@ public class WifiDppQrCodeGeneratorFragment extends WifiDppQrCodeBaseFragment {
|
||||
|
||||
private Button createActionButton(Drawable icon, CharSequence title, View.OnClickListener r) {
|
||||
final Button b = (Button) LayoutInflater.from(getContext()).inflate(
|
||||
com.android.internal.R.layout.chooser_action_button, null);
|
||||
R.layout.action_button, null);
|
||||
if (icon != null) {
|
||||
final int size = getResources()
|
||||
.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.chooser_action_button_icon_size);
|
||||
final int size = getResources().getDimensionPixelSize(R.dimen.action_button_icon_size);
|
||||
icon.setBounds(0, 0, size, size);
|
||||
b.setCompoundDrawablesRelative(icon, null, null, null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user