From: Damyan Ivanov Date: Thu, 16 Jul 2020 15:40:02 +0000 (+0000) Subject: use requireContext instead of Objects.requireNonNull X-Git-Tag: v0.15.0~86 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=48c4a9232442016aa8d80c2ac1bc8e0214bd6de1;p=mobile-ledger.git use requireContext instead of Objects.requireNonNull --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java index 3bbfe155..76a640ce 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java @@ -92,7 +92,7 @@ public class CurrencySelectorFragment extends AppCompatDialogFragment @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);