From 3663c22b62ec73e4c1322bdb11b8eb1925f6bfaa Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 17 Jul 2020 18:06:14 -0500 Subject: [PATCH] Fix generic compile --- app/src/main/java/org/tasks/ui/TaskEditControlFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/tasks/ui/TaskEditControlFragment.kt b/app/src/main/java/org/tasks/ui/TaskEditControlFragment.kt index 3197c00c4..a96c297fa 100644 --- a/app/src/main/java/org/tasks/ui/TaskEditControlFragment.kt +++ b/app/src/main/java/org/tasks/ui/TaskEditControlFragment.kt @@ -7,7 +7,7 @@ import android.view.ViewGroup import android.widget.ImageView import android.widget.LinearLayout import androidx.fragment.app.Fragment -import androidx.lifecycle.ViewModelProviders +import androidx.lifecycle.ViewModelProvider import butterknife.ButterKnife import org.tasks.R @@ -17,7 +17,7 @@ abstract class TaskEditControlFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { val view = inflater.inflate(R.layout.control_set_template, null) - viewModel = ViewModelProviders.of(requireParentFragment()).get(TaskEditViewModel::class.java) + viewModel = ViewModelProvider(requireParentFragment()).get(TaskEditViewModel::class.java) val content = view.findViewById(R.id.content) inflater.inflate(layout, content) val icon = view.findViewById(R.id.icon)