From fedb695d3c50ba93caadd7b5dba183b1438107bf Mon Sep 17 00:00:00 2001 From: Jeremiah Zucker Date: Mon, 22 Apr 2024 20:16:31 -0400 Subject: [PATCH] remove unused code --- .../reference/demo/ui/base/BasePlayerFragment.kt | 12 ------------ .../com/intuit/playerui/android/extensions/Into.kt | 6 ------ 2 files changed, 18 deletions(-) diff --git a/android/demo/src/main/java/com/intuit/playerui/android/reference/demo/ui/base/BasePlayerFragment.kt b/android/demo/src/main/java/com/intuit/playerui/android/reference/demo/ui/base/BasePlayerFragment.kt index cac310b3b..013c987c7 100644 --- a/android/demo/src/main/java/com/intuit/playerui/android/reference/demo/ui/base/BasePlayerFragment.kt +++ b/android/demo/src/main/java/com/intuit/playerui/android/reference/demo/ui/base/BasePlayerFragment.kt @@ -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 @@ -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() { @@ -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 diff --git a/android/player/src/main/java/com/intuit/playerui/android/extensions/Into.kt b/android/player/src/main/java/com/intuit/playerui/android/extensions/Into.kt index f12a0c61c..3d1c868f3 100644 --- a/android/player/src/main/java/com/intuit/playerui/android/extensions/Into.kt +++ b/android/player/src/main/java/com/intuit/playerui/android/extensions/Into.kt @@ -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