@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
- Context context = Objects.requireNonNull(getContext());
+ Context context = requireContext();
Dialog csd = new Dialog(context);
csd.setContentView(R.layout.fragment_currency_selector_list);
csd.setTitle(R.string.choose_currency_label);
model = new ViewModelProvider(this).get(CurrencySelectorModel.class);
if (onCurrencySelectedListener != null)
model.setOnCurrencySelectedListener(onCurrencySelectedListener);
- MobileLedgerProfile profile = Objects.requireNonNull(Data.profile.getValue());
+ MobileLedgerProfile profile = Objects.requireNonNull(Data.getProfile());
model.currencies.setValue(new CopyOnWriteArrayList<>(profile.getCurrencies()));
CurrencySelectorRecyclerViewAdapter adapter = new CurrencySelectorRecyclerViewAdapter();