fix getSwipeDirs working incorrectly, d uh

This commit is contained in:
Andrew Dolgov 2017-06-07 08:42:33 +03:00
parent d5871ce245
commit 7bdfe419aa
2 changed files with 3 additions and 3 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="445" android:versionCode="446"
android:versionName="1.211"> android:versionName="1.212">
<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

@ -363,7 +363,7 @@ public class HeadlinesFragment extends Fragment {
Article article = getArticleAtPosition(position); Article article = getArticleAtPosition(position);
if (article == null && article.id > 0) if (article == null || article.id < 0)
return 0; return 0;
return super.getSwipeDirs(recyclerView, viewHolder); return super.getSwipeDirs(recyclerView, viewHolder);