fixed yet another bug
This commit is contained in:
parent
77b9457707
commit
781bf8e7ec
|
@ -238,15 +238,18 @@ public class VideoItemDetailFragment extends Fragment {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
boolean show_age_restricted_content = PreferenceManager.getDefaultSharedPreferences(getActivity())
|
Activity a = getActivity();
|
||||||
|
if(a != null) {
|
||||||
|
boolean show_age_restricted_content = PreferenceManager.getDefaultSharedPreferences(a)
|
||||||
.getBoolean(activity.getString(R.string.show_age_restricted_content), false);
|
.getBoolean(activity.getString(R.string.show_age_restricted_content), false);
|
||||||
if(streamInfo.age_limit == 0 || show_age_restricted_content) {
|
if (streamInfo.age_limit == 0 || show_age_restricted_content) {
|
||||||
updateInfo(streamInfo);
|
updateInfo(streamInfo);
|
||||||
} else {
|
} else {
|
||||||
onNotSpecifiedContentErrorWithMessage(R.string.video_is_age_restricted);
|
onNotSpecifiedContentErrorWithMessage(R.string.video_is_age_restricted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private class ThumbnailLoadingListener implements ImageLoadingListener {
|
private class ThumbnailLoadingListener implements ImageLoadingListener {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue