Skip to content

Commit

Permalink
rename db resources
Browse files Browse the repository at this point in the history
  • Loading branch information
brocollie08 committed Mar 12, 2024
1 parent 0c04e33 commit b2d049e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions android/player/api/player.api
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,25 @@ public final class com/intuit/player/android/asset/RenderableAsset$Serializer :
public abstract interface class com/intuit/player/android/asset/RenderableAsset$ViewportAsset {
}

public final class com/intuit/player/android/databinding/DefaultFallbackBinding : androidx/viewbinding/ViewBinding {
public final class com/intuit/player/android/databinding/FallbackViewBinding : androidx/viewbinding/ViewBinding {
public final field error Landroid/widget/TextView;
public final field reset Landroid/widget/Button;
public final field retry Landroid/widget/Button;
public final field title Landroid/widget/TextView;
public static fun bind (Landroid/view/View;)Lcom/intuit/player/android/databinding/DefaultFallbackBinding;
public static fun bind (Landroid/view/View;)Lcom/intuit/player/android/databinding/FallbackViewBinding;
public synthetic fun getRoot ()Landroid/view/View;
public fun getRoot ()Landroidx/constraintlayout/widget/ConstraintLayout;
public static fun inflate (Landroid/view/LayoutInflater;)Lcom/intuit/player/android/databinding/DefaultFallbackBinding;
public static fun inflate (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Z)Lcom/intuit/player/android/databinding/DefaultFallbackBinding;
public static fun inflate (Landroid/view/LayoutInflater;)Lcom/intuit/player/android/databinding/FallbackViewBinding;
public static fun inflate (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Z)Lcom/intuit/player/android/databinding/FallbackViewBinding;
}

public final class com/intuit/player/android/databinding/FragmentPlayerBinding : androidx/viewbinding/ViewBinding {
public final class com/intuit/player/android/databinding/PlayerFragmentBinding : androidx/viewbinding/ViewBinding {
public final field playerCanvas Landroid/widget/FrameLayout;
public static fun bind (Landroid/view/View;)Lcom/intuit/player/android/databinding/FragmentPlayerBinding;
public static fun bind (Landroid/view/View;)Lcom/intuit/player/android/databinding/PlayerFragmentBinding;
public synthetic fun getRoot ()Landroid/view/View;
public fun getRoot ()Landroid/widget/ScrollView;
public static fun inflate (Landroid/view/LayoutInflater;)Lcom/intuit/player/android/databinding/FragmentPlayerBinding;
public static fun inflate (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Z)Lcom/intuit/player/android/databinding/FragmentPlayerBinding;
public static fun inflate (Landroid/view/LayoutInflater;)Lcom/intuit/player/android/databinding/PlayerFragmentBinding;
public static fun inflate (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Z)Lcom/intuit/player/android/databinding/PlayerFragmentBinding;
}

public final class com/intuit/player/android/extensions/IntoKt {
Expand Down Expand Up @@ -260,7 +260,7 @@ public abstract class com/intuit/player/android/ui/PlayerFragment : androidx/fra
public fun buildFallbackView (Ljava/lang/Exception;)Landroid/view/View;
public fun buildLoadingView ()Landroid/view/View;
public fun buildTransitionAnimation ()Landroidx/transition/Transition;
protected final fun getBinding ()Lcom/intuit/player/android/databinding/FragmentPlayerBinding;
protected final fun getBinding ()Lcom/intuit/player/android/databinding/PlayerFragmentBinding;
public abstract fun getPlayerViewModel ()Lcom/intuit/player/android/lifecycle/PlayerViewModel;
protected fun handleAssetUpdate (Lcom/intuit/player/android/asset/RenderableAsset;Z)V
public fun onCreateView (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import androidx.transition.Transition
import com.intuit.playerui.android.AndroidPlayer
import com.intuit.playerui.android.asset.RenderableAsset
import com.intuit.playerui.android.asset.SuspendableAsset
import com.intuit.playerui.android.databinding.DefaultFallbackBinding
import com.intuit.playerui.android.databinding.FragmentPlayerBinding
import com.intuit.playerui.android.databinding.FallbackViewBinding
import com.intuit.playerui.android.databinding.PlayerFragmentBinding
import com.intuit.playerui.android.extensions.into
import com.intuit.playerui.android.extensions.intoOnMain
import com.intuit.playerui.android.extensions.transitionInto
Expand Down Expand Up @@ -64,14 +64,14 @@ public abstract class PlayerFragment : Fragment(), ManagedPlayerState.Listener {
}
}

private var _binding: FragmentPlayerBinding? = null
private var _binding: PlayerFragmentBinding? = null

/**
* [FragmentPlayerBinding] instance
* [PlayerFragmentBinding] instance
* This property is only valid between onCreateView and onDestroyView.
* Will throw a NPE if called out of turn.
*/
protected val binding: FragmentPlayerBinding get() = _binding!!
protected val binding: PlayerFragmentBinding get() = _binding!!

/**
* [ViewModel][androidx.lifecycle.ViewModel] responsible for managing an [AndroidPlayer]
Expand Down Expand Up @@ -125,7 +125,7 @@ public abstract class PlayerFragment : Fragment(), ManagedPlayerState.Listener {
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?,
): View = FragmentPlayerBinding.inflate(inflater, container, false).run {
): View = PlayerFragmentBinding.inflate(inflater, container, false).run {
_binding = this
root
}
Expand Down Expand Up @@ -195,10 +195,10 @@ public abstract class PlayerFragment : Fragment(), ManagedPlayerState.Listener {

/**
* Builder method to provide a fallback [View] to be shown when the
* [PlayerViewModel] encounters an [exception]. Defaults to an instance of [DefaultFallbackBinding].
* [PlayerViewModel] encounters an [exception]. Defaults to an instance of [FallbackViewBinding].
*/
public open fun buildFallbackView(exception: Exception): View? =
DefaultFallbackBinding.inflate(layoutInflater).apply {
FallbackViewBinding.inflate(layoutInflater).apply {
this.error.text = exception.localizedMessage

retry.setOnClickListener {
Expand Down

0 comments on commit b2d049e

Please sign in to comment.