From acc4449bc80b5ff868af99f711dee3430be10144 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 5 Dec 2019 17:17:54 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/changecover/ChangeCoverDialog.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt b/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt index 4a283e463..03db768f4 100644 --- a/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt +++ b/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt @@ -6,8 +6,10 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment +import androidx.recyclerview.widget.GridLayoutManager import io.legado.app.R import io.legado.app.utils.getViewModel +import kotlinx.android.synthetic.main.dialog_change_source.* class ChangeCoverDialog : DialogFragment() { @@ -30,5 +32,10 @@ class ChangeCoverDialog : DialogFragment() { return inflater.inflate(R.layout.dialog_change_source, container) } + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + tool_bar.setTitle(R.string.change_cover_source) + recycler_view.layoutManager = GridLayoutManager(requireContext(), 3) + } } \ No newline at end of file