Merge branch 'jjj' into dev_MogoAP_eagle-1030_211020_8.0.14
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mogo.eagle.core.widget.media.video
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import android.util.Log
|
||||
import android.view.Surface
|
||||
@@ -213,5 +214,15 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
|
||||
super.onSizeChanged(w, h, oldw, oldh)
|
||||
if (!mIfCurrentIsFullscreen) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
this.outlineProvider = TextureVideoViewOutlineProvider(40F)
|
||||
this.clipToOutline = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user