Skip to content

Commit

Permalink
Fix a video crash
Browse files Browse the repository at this point in the history
  • Loading branch information
DSteve595 committed Oct 25, 2016
1 parent 48b7a4f commit 3011392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId 'com.stevenschoen.putionew'
minSdkVersion 19
targetSdkVersion 25
versionCode 100
versionName '4.0 beta 3'
versionCode 101
versionName '4.0 beta 4'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
Expand Down Expand Up @@ -55,7 +55,7 @@ dependencies {
compile 'com.tbruyelle.rxpermissions:rxpermissions:0.8.0@aar'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.aurelhubert:ahbottomnavigation:1.5.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta1'
}
repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class BaseCastActivity : AppCompatActivity(), PutioApplication.CastCall
}

override fun load(file: PutioFile, url: String, utils: PutioUtils) {
if (castContext == null || !castContext!!.isAppVisible) {
if (castContext == null || castContext!!.sessionManager.currentCastSession == null) {
utils.getStreamUrlAndPlay(this, file, url)
} else {
fun play(subtitles: List<PutioSubtitle>? = null) {
Expand Down

0 comments on commit 3011392

Please sign in to comment.