Skip to content

Commit

Permalink
bugfix & stability: Improved by a little the searching page and also …
Browse files Browse the repository at this point in the history
…the track, playlist and added albums support.
  • Loading branch information
BobbyESP committed Apr 4, 2023
1 parent f0a7456 commit 1acb6e6
Show file tree
Hide file tree
Showing 18 changed files with 501 additions and 253 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ android {
applicationId = "com.bobbyesp.spowlo"
minSdk = 26
targetSdk = 33
versionCode = 10201
versionCode = 10300

versionName = currentVersion.toVersionName().run {
if (!splitApks) "$this-(F-Droid)"
Expand Down Expand Up @@ -246,7 +246,7 @@ dependencies {
// implementation(libs.exoplayer.extension.mediasession)

implementation(libs.customtabs)
implementation(libs.shimmer)
// implementation(libs.shimmer)

debugImplementation(libs.crash.handler)

Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/bobbyesp/spowlo/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class App : Application() {
}

override fun onServiceDisconnected(arg0: ComponentName) {

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fun TrackComponent(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center
) {
if(isPlaylist){
if(isPlaylist && imageUrl.isNotEmpty()) {
AsyncImageImpl(
modifier = Modifier
.size(40.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,28 @@ fun DownloaderBottomSheet(
.fillMaxWidth()
.padding(6.dp)
) {
DrawerSheetSubtitle(text = stringResource(id = R.string.general))
Row(
modifier = Modifier
.horizontalScroll(rememberScrollState())
.fillMaxWidth()
.clip(RoundedCornerShape(6.dp))
.background(
color = MaterialTheme.colorScheme.surfaceVariant
),
) {
AudioFilterChip(label = stringResource(id = R.string.use_cache),
animated = true,
selected = useCaching,
onClick = {
useCaching = !useCaching
scope.launch {
settings.updateValue(USE_CACHING, useCaching)
}
})

}

DrawerSheetSubtitle(text = stringResource(id = R.string.experimental_features))
Row(
modifier = Modifier
Expand Down Expand Up @@ -389,17 +411,6 @@ fun DownloaderBottomSheet(
settings.updateValue(GEO_BYPASS, useGeoBypass)
}
})

AudioFilterChip(label = stringResource(id = R.string.use_cache),
animated = true,
selected = useCaching,
onClick = {
useCaching = !useCaching
scope.launch {
settings.updateValue(USE_CACHING, useCaching)
}
})

AudioFilterChip(label = stringResource(id = R.string.dont_filter_results),
selected = dontFilter,
animated = true,
Expand Down Expand Up @@ -514,7 +525,7 @@ fun DownloaderBottomSheet(
object BottomSheetPages {
val MAIN = getString(R.string.audio)
val SECONDARY = "secondary"
val TERTIARY = getString(R.string.experimental_features)
val TERTIARY = getString(R.string.downloader)
}

//GET STRING FROM APP.CONTEXT GIVEN A r.string ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bobbyesp.spowlo.ui.pages.common
package com.bobbyesp.spowlo.ui.pages.commonPages

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bobbyesp.spowlo.ui.pages.common
package com.bobbyesp.spowlo.ui.pages.commonPages

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bobbyesp.spowlo.ui.pages.common
package com.bobbyesp.spowlo.ui.pages.commonPages

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
Expand Down
Loading

0 comments on commit 1acb6e6

Please sign in to comment.