Skip to content

Commit

Permalink
Basic landscape support (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
siper authored Feb 9, 2025
1 parent 3b81504 commit a38f6a4
Show file tree
Hide file tree
Showing 14 changed files with 224 additions and 516 deletions.
6 changes: 0 additions & 6 deletions app/src/main/java/ru/stersh/youamp/main/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ class MainActivity : ComponentActivity() {
},
) {
MainScreen(
bigPlayer = {
PlayerScreen(
onBackClick = { rootNavController.popBackStack() },
onPlayQueueClick = { rootNavController.navigate(PlayQueue) }
)
},
miniPlayer = {
MiniPlayer(
viewModelStoreOwner = viewModelStoreOwner,
Expand Down
1 change: 1 addition & 0 deletions feature/main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ dependencies {
implementation(libs.coil.compose)
implementation(libs.navigation.compose)
implementation(libs.bundles.koin)
implementation(libs.compose.material3.adaptiveNavigationSuite)
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ru.stersh.youamp.feature.main.ui

import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.MusicNote
import androidx.compose.material.icons.rounded.Person
import androidx.compose.material.icons.rounded.Search
import androidx.compose.ui.graphics.vector.ImageVector
import ru.stersh.youamp.feature.main.R

internal enum class MainDestination(
@StringRes val titleResId: Int,
val icon: ImageVector
) {
PERSONAL(R.string.personal_title, Icons.Rounded.Person),
EXPLORE(R.string.explore_title, Icons.Rounded.Search),
LIBRARY(R.string.library_title, Icons.Rounded.MusicNote),
}
Loading

0 comments on commit a38f6a4

Please sign in to comment.