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