pull/53/head
parent
4b0c69500b
commit
a7793f1a34
@ -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…
Reference in new issue