
* fix: automate getting contributions It shouldn't need to be a conscious decision. It would be nice if the site_admin flag worked for the repo owner, but it's a known value * fix: also populate the forks page This hardcodes this repo, since downstream builds should still display the upstream forks
35 lines
1.2 KiB
Kotlin
35 lines
1.2 KiB
Kotlin
package ani.dantotsu.settings
|
|
|
|
import android.os.Bundle
|
|
import android.view.LayoutInflater
|
|
import android.view.View
|
|
import android.view.ViewGroup
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import ani.dantotsu.BottomSheetDialogFragment
|
|
import ani.dantotsu.connections.github.Contributors
|
|
import ani.dantotsu.databinding.BottomSheetDevelopersBinding
|
|
|
|
class DevelopersDialogFragment : BottomSheetDialogFragment() {
|
|
private var _binding: BottomSheetDevelopersBinding? = null
|
|
private val binding get() = _binding!!
|
|
|
|
override fun onCreateView(
|
|
inflater: LayoutInflater,
|
|
container: ViewGroup?,
|
|
savedInstanceState: Bundle?
|
|
): View {
|
|
_binding = BottomSheetDevelopersBinding.inflate(inflater, container, false)
|
|
return binding.root
|
|
}
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
super.onViewCreated(view, savedInstanceState)
|
|
binding.devsRecyclerView.adapter = DevelopersAdapter(Contributors().getContributors())
|
|
binding.devsRecyclerView.layoutManager = LinearLayoutManager(requireContext())
|
|
}
|
|
|
|
override fun onDestroy() {
|
|
_binding = null
|
|
super.onDestroy()
|
|
}
|
|
}
|