Fix null duration
This commit is contained in:
parent
2648145438
commit
47849c34e9
|
@ -2,8 +2,8 @@
|
|||
<manifest xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
package="com.thejoshwa.ultrasonic.androidapp"
|
||||
a:installLocation="auto"
|
||||
a:versionCode="28"
|
||||
a:versionName="1.2.0.1" >
|
||||
a:versionCode="29"
|
||||
a:versionName="1.2.0.2" >
|
||||
|
||||
<uses-permission a:name="android.permission.INTERNET" />
|
||||
<uses-permission a:name="android.permission.READ_PHONE_STATE" />
|
||||
|
|
|
@ -254,7 +254,7 @@ public class MusicDirectory {
|
|||
}
|
||||
|
||||
public Integer getDuration() {
|
||||
return duration;
|
||||
return duration == null ? 0 : duration;
|
||||
}
|
||||
|
||||
public void setDuration(Integer duration) {
|
||||
|
|
Loading…
Reference in New Issue