disable headlines list animation (glitchy when scrolling sometimes)

This commit is contained in:
Andrew Dolgov 2017-06-06 12:41:29 +03:00
parent fc632ae9a9
commit a6038e6896
2 changed files with 2 additions and 21 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="org.fox.ttrss" package="org.fox.ttrss"
android:versionCode="441" android:versionCode="442"
android:versionName="1.207"> android:versionName="1.208">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

View File

@ -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 @Override