This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun show(manager: FragmentManager, tag: String?) { | |
try { | |
val superClass = this::class.java.superclass | |
val dismissedField = superClass?.getDeclaredField("mDismissed") | |
val isShownByMeField = superClass?.getDeclaredField("mShownByMe") | |
dismissedField?.isAccessible = true | |
isShownByMeField?.isAccessible = true | |
dismissedField?.setBoolean(this, false) | |
isShownByMeField?.setBoolean(this, true) | |
dismissedField?.isAccessible = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val audioPauseJavascipt = "function pauseAudioAndVideo(windowA){" + | |
" for(var i = 0; i < windowA.document.getElementsByTagName('video').length; i++){" + | |
" var media = windowA.document.getElementsByTagName('video')[i];" + | |
" media.pause(); " + | |
" media.currentTime = -1; " + | |
" media.volume = 0; " + | |
" }" + | |
" for(var i = 0; i < windowA.document.getElementsByTagName('audio').length; i++){" + | |
" var media = windowA.document.getElementsByTagName('audio')[i];" + | |
" media.pause(); " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DrwableMaker.kt | |
class DrawableMaker { | |
var shape: DrawableShape = DrawableShape.RECTANGLE | |
@ColorInt | |
var color: Int = 0 | |
var cornerRadius: Int = 0 | |
var cornerRadii: CornerRadii? = null | |
var gradientOrientation: GradientDrawable.Orientation = GradientDrawable.Orientation.TOP_BOTTOM | |
var gradientColors: IntArray? = null |
OlderNewer