make quick preview image transparent

This commit is contained in:
Andrew Dolgov 2013-01-18 09:45:21 +04:00
parent f0bc21b1a8
commit 633f17e2e8

View File

@ -47,6 +47,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
//private Article m_nextArticle;
//private Article m_prevArticle;
private GestureDetector m_detector;
private boolean m_visible = true;
public ArticleFragment() {
super();
@ -67,12 +68,12 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
switch (item.getItemId()) {
case R.id.article_link_share:
if (true) {
if (m_visible) {
((OnlineActivity) getActivity()).shareArticle(m_article);
}
return true;
case R.id.article_link_copy:
if (true) {
if (m_visible) {
((OnlineActivity) getActivity()).copyToClipboard(m_article.link);
}
return true;
@ -82,6 +83,13 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
}
}
@Override
public void setUserVisibleHint(boolean visible) {
super.setUserVisibleHint(visible);
m_visible = visible;
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {