Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarmanz committed Apr 23, 2024
1 parent 64e4a8b commit fedb695
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.intuit.playerui.android.reference.demo.ui.base

import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand All @@ -19,7 +18,6 @@ import com.intuit.playerui.core.bridge.toJson
import com.intuit.playerui.core.managed.AsyncFlowIterator
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

/** Simple [PlayerFragment] example that builds a [DemoPlayerViewModel] w/ a single flow iterator */
abstract class BasePlayerFragment : PlayerFragment() {
Expand All @@ -37,16 +35,6 @@ abstract class BasePlayerFragment : PlayerFragment() {
return super.onCreateView(inflater, container, savedInstanceState)
}

private suspend fun toggleScreenShare(active: Boolean) = withContext(Dispatchers.Main) {
binding.playerCanvas.background = if (active) {
GradientDrawable().apply {
setStroke(30, resources.getColor(android.R.color.holo_green_light))
}
} else {
null
}
}

override fun buildFallbackView(exception: Exception): View? = currentPlayerCanvas

override fun buildDoneView(): View? = currentPlayerCanvas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ import android.widget.FrameLayout
import androidx.core.view.children
import androidx.transition.Transition
import androidx.transition.TransitionManager
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

internal suspend infix fun View?.intoOnMain(root: FrameLayout) = withContext(Dispatchers.Main) {
into(root)
}

/**
* Helper method to replace the existing [FrameLayout] child
Expand Down

0 comments on commit fedb695

Please sign in to comment.