Check if view still exists in UICallback
This commit is contained in:
parent
69e3814c77
commit
70da5769d4
1 changed files with 8 additions and 4 deletions
|
@ -1225,12 +1225,16 @@ public class VideoDetailFragment extends BaseFragment implements StreamExtractor
|
||||||
public boolean handleMessage(Message msg) {
|
public boolean handleMessage(Message msg) {
|
||||||
switch (msg.what) {
|
switch (msg.what) {
|
||||||
case BackgroundCallback.MESSAGE_DESCRIPTION:
|
case BackgroundCallback.MESSAGE_DESCRIPTION:
|
||||||
|
if (videoDescriptionView != null) {
|
||||||
videoDescriptionView.setText((Spanned) msg.obj);
|
videoDescriptionView.setText((Spanned) msg.obj);
|
||||||
videoDescriptionView.setVisibility(View.VISIBLE);
|
videoDescriptionView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
case BackgroundCallback.MESSAGE_UPLOADER_DATE:
|
case BackgroundCallback.MESSAGE_UPLOADER_DATE:
|
||||||
|
if (videoUploadDateView != null) {
|
||||||
videoUploadDateView.setText((String) msg.obj);
|
videoUploadDateView.setText((String) msg.obj);
|
||||||
videoUploadDateView.setVisibility(View.VISIBLE);
|
videoUploadDateView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue