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 new file mode 100644 index 000000000..ad94edb17 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt @@ -0,0 +1,18 @@ +package io.legado.app.ui.changecover + +import android.util.DisplayMetrics +import androidx.fragment.app.DialogFragment + + +class ChangeCoverDialog : DialogFragment() { + + + override fun onStart() { + super.onStart() + val dm = DisplayMetrics() + activity?.windowManager?.defaultDisplay?.getMetrics(dm) + dialog?.window?.setLayout((dm.widthPixels * 0.9).toInt(), (dm.heightPixels * 0.9).toInt()) + } + + +} \ No newline at end of file