]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use requireContext instead of Objects.requireNonNull
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 16 Jul 2020 15:40:02 +0000 (15:40 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 16 Jul 2020 15:40:02 +0000 (15:40 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java

index 3bbfe1554219aec3b3dd96b40f5a96feb3207966..76a640ce287998432b17ac64516ebb263a5429aa 100644 (file)
@@ -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);