diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java index b15be90d..a1a2f019 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java @@ -8,7 +8,6 @@ import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; -import android.support.v4.widget.NestedScrollView; import android.support.v7.app.ActionBar; import android.text.Html; import android.util.Log; @@ -27,13 +26,14 @@ import android.webkit.WebView.HitTestResult; import android.webkit.WebViewClient; import android.widget.FrameLayout; import android.widget.ImageView; +import android.widget.ScrollView; import android.widget.TextView; import com.shamanland.fab.ShowHideOnScroll; import org.fox.ttrss.types.Article; import org.fox.ttrss.types.Attachment; -import org.fox.ttrss.util.NoChildFocusScrollView; +import org.fox.ttrss.util.NotifyingScrollView; import java.net.MalformedURLException; import java.net.URL; @@ -192,15 +192,15 @@ public class ArticleFragment extends Fragment { return view; } - NoChildFocusScrollView scrollView = (NoChildFocusScrollView) view.findViewById(R.id.article_scrollview); + NotifyingScrollView scrollView = (NotifyingScrollView) view.findViewById(R.id.article_scrollview); m_fab = view.findViewById(R.id.article_fab); if (scrollView != null && m_activity.isSmallScreen()) { view.findViewById(R.id.article_heading_spacer).setVisibility(View.VISIBLE); - scrollView.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() { + scrollView.setOnScrollChangedListener(new NotifyingScrollView.OnScrollChangedListener() { @Override - public void onScrollChange(NestedScrollView who, int l, int t, int oldl, int oldt) { + public void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt) { ActionBar ab = m_activity.getSupportActionBar(); if (t >= oldt && t >= ab.getHeight()) { |