aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/github/daneren2005/dsub/util/UserUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/UserUtil.java b/src/github/daneren2005/dsub/util/UserUtil.java
index 068e25f9..c6e307e8 100644
--- a/src/github/daneren2005/dsub/util/UserUtil.java
+++ b/src/github/daneren2005/dsub/util/UserUtil.java
@@ -20,6 +20,7 @@ import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
+import android.os.Build;
import android.util.Log;
import android.view.View;
import android.widget.Adapter;
@@ -78,7 +79,7 @@ public final class UserUtil {
@Override
protected void done(Void result) {
- if(context instanceof Activity) {
+ if(context instanceof Activity && Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
((Activity) context).invalidateOptionsMenu();
}
}