You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Plan: Show full-screen player from media notification
1
+
# Plan: Redesign Playlist Mode Buttons in Full-screen Player
2
2
3
3
## Goal
4
-
Show the full-screen player when the user clicks on the media notification.
4
+
Redesign the shuffle and repeat mode buttons in the playlist view of the full-screen player to be more visually appealing and consistent with Material 3 principles.
5
5
6
6
## Tasks
7
-
-[ ]**Task 1: Update AndroidManifest.xml**
8
-
-Set `android:launchMode="singleTop"` for `MainActivity` to ensure we can handle new intents efficiently.
9
-
-[ ]**Task 2: Update KanadePlaybackService.kt**
10
-
-Create a `PendingIntent` targeting `MainActivity`with an extra `EXTRA_EXPAND_PLAYER = true`.
11
-
-Set this `PendingIntent` as the `sessionActivity`for the `MediaSession`.
12
-
-[ ]**Task 3: Update MainActivity.kt**
13
-
- Define a constant for `EXTRA_EXPAND_PLAYER`.
14
-
-Create a function to check the intent and trigger `PlayerIntent.Expand` if needed.
15
-
-Call this function in `onCreate` and override `onNewIntent` to call it as well.
7
+
-[ ]**Task 1: Locate and Analyze current implementation**
8
+
-[x] Identified `PlaylistContent` in `app/src/main/java/org/parallel_sekai/kanade/ui/screens/player/PlayerComponents.kt`.
9
+
-[ ]**Task 2: Design and Implement new Mode Buttons**
10
+
-Replace the existing `IconButton` implementations with a more refined design.
11
+
-Use `Surface` or `Box` with background and click handling for better control over the visual state.
12
+
- Ensure active states (shuffle on, repeat modes) are clearly distinguished.
13
+
-[ ]**Task 3: Verification**
14
+
-Build the project to ensure no compilation errors.
15
+
-(Manual) Verify the new UI in the app.
16
16
17
-
## Verification
18
-
- Start playback.
19
-
- Go to home screen or another app.
20
-
- Click the media notification.
21
-
- The app should open and automatically expand the player to full-screen.
17
+
## Proposed Design Changes
18
+
- Use a pill-shaped or rounded-rect container for the buttons.
19
+
- Increase the contrast for active states.
20
+
- Ensure the icons and backgrounds harmonize with the dark, immersive player UI.
0 commit comments