pull/53/head
kunfei 5 years ago
parent 4b0c69500b
commit a7793f1a34
  1. 18
      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())
}
}
Loading…
Cancel
Save