block another invocation of setlabels on api 7

This commit is contained in:
Andrew Dolgov 2013-11-27 19:09:21 +04:00
parent f22fd94e93
commit a4d38f3227
1 changed files with 5 additions and 1 deletions

View File

@ -108,7 +108,11 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
Article article = getArticleAtPosition(info.position);
if (article != null) {
m_activity.editArticleLabels(article);
if (m_activity.getApiLevel() != 7) {
m_activity.editArticleLabels(article);
} else {
m_activity.toast(R.string.server_function_not_available);
}
}
}
return true;