mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-16 11:41:16 +01:00
Check for nulls before setting visibilty
This commit is contained in:
parent
ea180e11ef
commit
02f17e8592
@ -2,8 +2,8 @@
|
||||
<manifest xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
package="com.thejoshwa.ultrasonic.androidapp"
|
||||
a:installLocation="auto"
|
||||
a:versionCode="41"
|
||||
a:versionName="1.3.0.1" >
|
||||
a:versionCode="42"
|
||||
a:versionName="1.3.0.2" >
|
||||
|
||||
<uses-permission a:name="android.permission.INTERNET" />
|
||||
<uses-permission a:name="android.permission.READ_PHONE_STATE" />
|
||||
|
@ -205,8 +205,15 @@ public class SongView extends UpdateView implements Checkable
|
||||
durationTextView.setText(Util.formatTotalDuration(duration));
|
||||
}
|
||||
|
||||
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);
|
||||
songDragImageView.setVisibility(dragable ? View.VISIBLE : View.GONE);
|
||||
if (checkedTextView != null)
|
||||
{
|
||||
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
if (songDragImageView != null)
|
||||
{
|
||||
songDragImageView.setVisibility(dragable ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
if (Util.isOffline(this.context))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user