Skip to content

Commit

Permalink
Hidden player screen when app started by default
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed Mar 28, 2024
1 parent 4225fbc commit 1afe306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/main/java/org/blackcandy/android/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class MainActivity : AppCompatActivity(), TurboActivity, OnItemSelectedListener
binding.miniPlayerComposeView.isGone = slideOffset == 1f
binding.bottomNav.translationY = slideOffset * bottomNavTransitionVelocity
binding.bottomNav.alpha = 1 - slideOffset
binding.playerScreenComposeView.isGone = slideOffset == 0f
binding.playerScreenComposeView.alpha = (slideOffset - transitionOffsetThreshold) / transitionOffsetThreshold
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
android:layout_height="match_parent" />

<androidx.fragment.app.FragmentContainerView
android:visibility="gone"
android:id="@+id/library_container"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent" />

Expand All @@ -26,6 +26,7 @@
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<androidx.compose.ui.platform.ComposeView
android:id="@+id/player_screen_compose_view"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

Expand Down

0 comments on commit 1afe306

Please sign in to comment.