make quick preview image transparent
This commit is contained in:
parent
f0bc21b1a8
commit
633f17e2e8
@ -47,6 +47,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
|||||||
//private Article m_nextArticle;
|
//private Article m_nextArticle;
|
||||||
//private Article m_prevArticle;
|
//private Article m_prevArticle;
|
||||||
private GestureDetector m_detector;
|
private GestureDetector m_detector;
|
||||||
|
private boolean m_visible = true;
|
||||||
|
|
||||||
public ArticleFragment() {
|
public ArticleFragment() {
|
||||||
super();
|
super();
|
||||||
@ -67,12 +68,12 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
|||||||
|
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.article_link_share:
|
case R.id.article_link_share:
|
||||||
if (true) {
|
if (m_visible) {
|
||||||
((OnlineActivity) getActivity()).shareArticle(m_article);
|
((OnlineActivity) getActivity()).shareArticle(m_article);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case R.id.article_link_copy:
|
case R.id.article_link_copy:
|
||||||
if (true) {
|
if (m_visible) {
|
||||||
((OnlineActivity) getActivity()).copyToClipboard(m_article.link);
|
((OnlineActivity) getActivity()).copyToClipboard(m_article.link);
|
||||||
}
|
}
|
||||||
return true;
|
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
|
@Override
|
||||||
public void onCreateContextMenu(ContextMenu menu, View v,
|
public void onCreateContextMenu(ContextMenu menu, View v,
|
||||||
ContextMenuInfo menuInfo) {
|
ContextMenuInfo menuInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user