Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
y20k committed Jul 27, 2020
1 parent 3ae2ea6 commit cc84d4c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 27 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId 'org.y20k.transistor'
minSdkVersion 25
targetSdkVersion 29
versionCode 75
versionName '4.0.3'
versionCode 76
versionName '4.0.4'
resConfigs "en", "ar", "ca", "cs","de", "el", "es", "eu", "fr", "hr", "id", "in", "it", "ja", "kab", "nb-rNO", "nl", "pa", "pl", "pt", "pt-rBR", "ru", "sk", "sl", "sr", "th", "tr", "uk", "zh-rCN"
}

Expand Down Expand Up @@ -62,15 +62,15 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4"

implementation "com.google.android.material:material:1.2.0-beta01"

implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation "androidx.core:core-ktx:1.3.0"
implementation "androidx.core:core-ktx:1.3.1"
implementation "androidx.activity:activity-ktx:1.1.0"
implementation "androidx.palette:palette:1.0.0"
implementation "androidx.preference:preference:1.1.1"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/org/y20k/transistor/PlayerFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ class PlayerFragment: Fragment(), CoroutineScope,
onboarding = layout.toggleOnboarding(activity as Context, collection.stations.size)
// get station
station = CollectionHelper.getStation(collection, playerState.stationUuid)
if (!station.isValid() && collection.stations.isNotEmpty()) station = collection.stations[0]
// update player views
layout.updatePlayerViews(activity as Context, station, playerState.playbackState)
// handle start intent
Expand Down
21 changes: 0 additions & 21 deletions app/src/main/java/org/y20k/transistor/PlayerService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -534,26 +534,6 @@ class PlayerService(): MediaBrowserServiceCompat(), Player.EventListener, Metada
}


/* Updates / increases the playback speed */
private fun updatePlaybackSpeed(currentSpeed: Float = 1f): Float {
var newSpeed: Float = 1f
// circle through the speed presets
val iterator = Keys.PLAYBACK_SPEEDS.iterator()
while (iterator.hasNext()) {
// found current speed in array
if (iterator.next() == currentSpeed) {
if (iterator.hasNext()) {
newSpeed = iterator.next()
}
break
}
}
// apply new speed
setPlaybackSpeed(newSpeed)
return newSpeed
}


/* Sets playback speed */
private fun setPlaybackSpeed(speed: Float = 1f) {
// update playback parameters - speed up playback
Expand All @@ -564,7 +544,6 @@ class PlayerService(): MediaBrowserServiceCompat(), Player.EventListener, Metada
}



/* Loads media items into result - assumes that collectionProvider is initialized */
private fun loadChildren(parentId: String, result: Result<MutableList<MediaBrowserCompat.MediaItem>>) {
val mediaItems = ArrayList<MediaBrowserCompat.MediaItem>()
Expand Down
7 changes: 7 additions & 0 deletions metadata/en-US/changelogs/76.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# v4.0.4 - Andy Warhol

**2020-07-27**

- improved scrolling performance

The v4 update was pretty big, find out more: https://github.com/y20k/transistor/blob/master/metadata/en-US/changelogs/72.txt

0 comments on commit cc84d4c

Please sign in to comment.