]> git.ktnx.net Git - mobile-ledger.git/commitdiff
typo in exception name
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 30 Aug 2021 16:17:11 +0000 (19:17 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 30 Aug 2021 16:17:11 +0000 (19:17 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java

index 9bcac1c81a9b65d2b0d5ada9441493a71efb7120..b11945d2e44a37fad9319461d413d479d4ba1de8 100644 (file)
@@ -20,7 +20,6 @@ package net.ktnx.mobileledger.ui.new_transaction;
 import android.content.Context;
 import android.content.res.Resources;
 import android.os.Bundle;
-import android.renderscript.RSInvalidStateException;
 import android.view.LayoutInflater;
 import android.view.Menu;
 import android.view.MenuInflater;
@@ -128,7 +127,7 @@ public class NewTransactionFragment extends Fragment {
         super.onViewCreated(view, savedInstanceState);
         FragmentActivity activity = getActivity();
         if (activity == null)
-            throw new RSInvalidStateException(
+            throw new IllegalStateException(
                     "getActivity() returned null within onActivityCreated()");
 
         viewModel = new ViewModelProvider(activity).get(NewTransactionModel.class);