Skip to content

Commit cc7e934

Browse files
UI: remove all downloads tab
1 parent e44c8e8 commit cc7e934

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

android/src/main/kotlin/project/pipepipe/app/ui/screens/DownloadScreen.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ fun DownloadScreen(
5656

5757
var selectedTab by remember { mutableStateOf(0) }
5858
val tabs = listOf(
59-
"All" to null,
6059
"Downloading" to DownloadStatus.DOWNLOADING,
6160
"Completed" to DownloadStatus.COMPLETED,
6261
"Failed" to DownloadStatus.FAILED
@@ -174,9 +173,9 @@ fun DownloadScreen(
174173
) {
175174
Text(
176175
text = when (selectedTab) {
177-
1 -> "No active downloads"
178-
2 -> "No completed downloads"
179-
3 -> "No failed downloads"
176+
0 -> "No active downloads"
177+
1 -> "No completed downloads"
178+
2 -> "No failed downloads"
180179
else -> "No downloads yet"
181180
},
182181
fontSize = 16.sp,

0 commit comments

Comments
 (0)