diff options
-rw-r--r-- | src/org/fox/ttrss/ArticleFragment.java | 39 | ||||
-rw-r--r-- | src/org/fox/ttrss/offline/OfflineArticleFragment.java | 39 |
2 files changed, 3 insertions, 75 deletions
diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index de15d254..9d5078ef 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -423,44 +423,9 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl return false; } - private void onLeftSideTapped() { - ArticlePager ap = (ArticlePager) m_activity.getSupportFragmentManager().findFragmentByTag(CommonActivity.FRAG_ARTICLE); - - if (ap != null && ap.isAdded()) { - ap.selectArticle(false); - } - } - - private void onRightSideTapped() { - ArticlePager ap = (ArticlePager) m_activity.getSupportFragmentManager().findFragmentByTag(CommonActivity.FRAG_ARTICLE); - - if (ap != null && ap.isAdded()) { - ap.selectArticle(true); - } - } - @Override - public boolean onSingleTapConfirmed(MotionEvent e) { - - int width = getView().getWidth(); - int x = Math.round(e.getX()); - - if (x <= width/15) { - onLeftSideTapped(); - return true; - } else if (x >= width-(width/15)) { - onRightSideTapped(); - return true; - } /* else if (!m_activity.isCompatMode()) { - ActionBar bar = m_activity.getSupportActionBar(); - - if (bar.isShowing()) { - bar.hide(); - } else { - bar.show(); - } - } */ + public boolean onSingleTapConfirmed(MotionEvent arg0) { + // TODO Auto-generated method stub return false; } - } diff --git a/src/org/fox/ttrss/offline/OfflineArticleFragment.java b/src/org/fox/ttrss/offline/OfflineArticleFragment.java index d4870e1b..f055274e 100644 --- a/src/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -373,46 +373,9 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector. return false; } - private void onLeftSideTapped() { - OfflineArticlePager ap = (OfflineArticlePager) m_activity.getSupportFragmentManager().findFragmentByTag(CommonActivity.FRAG_ARTICLE); - - if (ap != null && ap.isAdded()) { - ap.selectArticle(false); - } - } - - private void onRightSideTapped() { - OfflineArticlePager ap = (OfflineArticlePager) m_activity.getSupportFragmentManager().findFragmentByTag(CommonActivity.FRAG_ARTICLE); - - if (ap != null && ap.isAdded()) { - ap.selectArticle(true); - } - } - @Override public boolean onSingleTapConfirmed(MotionEvent e) { - - int width = getView().getWidth(); - int x = Math.round(e.getX()); - - if (x <= width/15) { - onLeftSideTapped(); - return true; - } else if (x >= width-(width/15)) { - onRightSideTapped(); - return true; - } /* else if (!m_activity.isCompatMode()) { - ActionBar bar = m_activity.getSupportActionBar(); - - if (bar.isShowing()) { - bar.hide(); - } else { - bar.show(); - } - } */ - + // TODO Auto-generated method stub return false; } - - } |