fixed yet another bug
This commit is contained in:
parent
77b9457707
commit
781bf8e7ec
1 changed files with 9 additions and 6 deletions
|
@ -238,7 +238,9 @@ public class VideoItemDetailFragment extends Fragment {
|
|||
}
|
||||
@Override
|
||||
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);
|
||||
if (streamInfo.age_limit == 0 || show_age_restricted_content) {
|
||||
updateInfo(streamInfo);
|
||||
|
@ -247,6 +249,7 @@ public class VideoItemDetailFragment extends Fragment {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class ThumbnailLoadingListener implements ImageLoadingListener {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue