use of dagger.extension.example.databinding.ErrorBinding in project dagger-test-example by aschattney.
the class ErrorDialogFragment method onCreateDialog.
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
((MainActivity) getActivity()).inject(this, getArguments().getString("message"), getArguments().getString("title"));
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
ErrorBinding binding = DataBindingUtil.inflate(LayoutInflater.from(getActivity()), R.layout.error, null, false);
binding.setVm(vm);
builder.setView(binding.getRoot());
builder.setPositiveButton("OK", null);
return builder.create();
}
Aggregations