summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/fragment
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2013-09-05 14:39:53 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2013-09-05 14:39:53 +0200
commit7926494d7657482df83a898750f7cb33f517e041 (patch)
tree2c1739c2cb460e0ea847ffc2b3998f52c8c265d3 /src/de/danoeh/antennapod/fragment
parent5bcfd2c255dce1a908774fab50b9138f539bfc6c (diff)
downloadAntennaPod-7926494d7657482df83a898750f7cb33f517e041.zip
Added workarounds for ActionMode/Option menu bugs
Diffstat (limited to 'src/de/danoeh/antennapod/fragment')
-rw-r--r--src/de/danoeh/antennapod/fragment/FeedlistFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/fragment/FeedlistFragment.java b/src/de/danoeh/antennapod/fragment/FeedlistFragment.java
index 6283a4b7f..ed607b279 100644
--- a/src/de/danoeh/antennapod/fragment/FeedlistFragment.java
+++ b/src/de/danoeh/antennapod/fragment/FeedlistFragment.java
@@ -5,6 +5,7 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
@@ -244,10 +245,11 @@ public class FeedlistFragment extends Fragment implements
}
private boolean actionModeDestroyWorkaround = false; // TODO remove this workaround
+ private boolean skipWorkAround = Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH;
@Override
public void onDestroyActionMode(ActionMode mode) {
- if (actionModeDestroyWorkaround) {
+ if (skipWorkAround || actionModeDestroyWorkaround) {
mActionMode = null;
selectedFeed = null;
fla.setSelectedItemIndex(FeedlistAdapter.SELECTION_NONE);