mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
639 B
Kotlin
24 lines
639 B
Kotlin
package org.tasks.ui
|
|
|
|
import android.os.Bundle
|
|
import android.view.LayoutInflater
|
|
import android.view.ViewGroup
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.fragment.app.Fragment
|
|
import androidx.fragment.app.viewModels
|
|
import androidx.fragment.compose.content
|
|
|
|
abstract class TaskEditControlFragment : Fragment() {
|
|
protected val viewModel: TaskEditViewModel by viewModels({ requireParentFragment() })
|
|
|
|
override fun onCreateView(
|
|
inflater: LayoutInflater,
|
|
container: ViewGroup?,
|
|
savedInstanceState: Bundle?
|
|
) = content {
|
|
Content()
|
|
}
|
|
|
|
@Composable
|
|
abstract fun Content()
|
|
} |