From 813784669047a99e7def6ce069ae141753887bc2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 14 Aug 2019 22:35:11 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/changesource/ChangeSourceDialog.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt index df376b041..13007195a 100644 --- a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt @@ -26,6 +26,11 @@ class ChangeSourceDialog(val name: String, val author: String) : DialogFragment( initSearchView() } + override fun onStart() { + super.onStart() + dialog?.window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT) + } + private fun initRecyclerView() { recycler_view.layoutManager = LinearLayoutManager(context) }