diff options
Diffstat (limited to 'org.fox.ttrss')
-rwxr-xr-x | org.fox.ttrss/src/main/AndroidManifest.xml | 4 | ||||
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index ec4094d8..1e79dbed 100755 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.fox.ttrss" - android:versionCode="415" - android:versionName="1.181" > + android:versionCode="416" + android:versionName="1.182" > <uses-sdk android:minSdkVersion="16" diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index 3650e3c8..880bf384 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -61,6 +61,7 @@ import com.google.gson.JsonElement; import com.nhaarman.listviewanimations.appearance.AnimationAdapter; import com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter; import com.nhaarman.listviewanimations.itemmanipulation.DynamicListView; +import com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.DismissableManager; import com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.OnDismissCallback; import com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.undo.SimpleSwipeUndoAdapter; import com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.undo.TimedUndoAdapter; @@ -560,6 +561,19 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, swipeUndoAdapter.setAbsListView(m_list); m_list.setAdapter(swipeUndoAdapter); m_list.enableSimpleSwipeUndo(); + m_list.setDismissableManager(new DismissableManager() { + @Override + public boolean isDismissable(long id, int position) { + try { + Article article = m_adapter.getItem(position); + + return article != null; + } catch (Exception e) { + // index out of bounds == footer or w/e + return false; + } + } + }); } |