disable headlines list animation (glitchy when scrolling sometimes)
This commit is contained in:
parent
fc632ae9a9
commit
a6038e6896
@ -2,8 +2,8 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="441"
|
||||
android:versionName="1.207">
|
||||
android:versionCode="442"
|
||||
android:versionName="1.208">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
@ -1481,25 +1481,6 @@ public class HeadlinesFragment extends Fragment {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// not on an emulator pls
|
||||
if (!BuildConfig.DEBUG) {
|
||||
startAnimation(holder.view, position);
|
||||
}
|
||||
}
|
||||
|
||||
protected void startAnimation(View view, int position) {
|
||||
if (position > m_lastAddedPosition) {
|
||||
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.up_from_bottom);
|
||||
view.startAnimation(animation);
|
||||
m_lastAddedPosition = position;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewDetachedFromWindow(final ArticleViewHolder holder)
|
||||
{
|
||||
holder.clearAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user