diff options
author | Andrew Dolgov <[email protected]> | 2017-10-31 14:58:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-10-31 14:58:27 +0300 |
commit | 201c27e737b2ad0944312f9adcf2c85c8301dd30 (patch) | |
tree | 96c78a65d860255d2195ef591c8851ba6a074938 | |
parent | e463fce83848a6eaa22d27759d06315a7e8d1b00 (diff) |
remove second fab variable
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticleFragment.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticleFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticleFragment.java index 0b4b979b..0d409d9f 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -211,7 +211,7 @@ public class OfflineArticleFragment extends Fragment { final String link = m_cursor.getString(m_cursor.getColumnIndex("link")); NotifyingScrollView scrollView = (NotifyingScrollView) view.findViewById(R.id.article_scrollview); - View fab = view.findViewById(R.id.article_fab); + m_fab = view.findViewById(R.id.article_fab); if (scrollView != null && m_activity.isSmallScreen()) { view.findViewById(R.id.article_heading_spacer).setVisibility(View.VISIBLE); @@ -231,11 +231,11 @@ public class OfflineArticleFragment extends Fragment { }); } - if (scrollView != null && fab != null) { + if (scrollView != null && m_fab != null) { if (m_prefs.getBoolean("enable_article_fab", true)) { - scrollView.setOnTouchListener(new ShowHideOnScroll(fab)); + scrollView.setOnTouchListener(new ShowHideOnScroll(m_fab)); - fab.setOnClickListener(new OnClickListener() { + m_fab.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { try { @@ -251,7 +251,7 @@ public class OfflineArticleFragment extends Fragment { } }); } else { - fab.setVisibility(View.GONE); + m_fab.setVisibility(View.GONE); } } |