Skip to content

Instantly share code, notes, and snippets.

@yudikarma
Created October 14, 2019 07:10
Show Gist options
  • Save yudikarma/4fcf45053652f87a87d1691b7d2f77e6 to your computer and use it in GitHub Desktop.
Save yudikarma/4fcf45053652f87a87d1691b7d2f77e6 to your computer and use it in GitHub Desktop.
fun onPause() {
super.onPause()
// Fragment locked in portrait screen orientation
getActivity()?.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
val holder = mview.feed_home.findViewHolderForAdapterPosition(0)
if (holder is ViewHolderVideos){
//myZonaFragmentAdapter.pauseVodio(holder as ViewHolderVideos)
holder.playback.let {
kohii.pause(it,Scope.HOST)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment