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;
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);