diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-06-26 07:41:55 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-06-26 07:41:55 -0700 |
commit | d1a885402d4c6e43afdaa2155ee01bfad9afb805 (patch) | |
tree | 2c58f2c265fb8e7700e96b72c901d3e5fdfc53f2 | |
parent | 8adee5a9f67d95228ae07fb4fb54823d09305089 (diff) | |
download | dsub-d1a885402d4c6e43afdaa2155ee01bfad9afb805.tar.gz dsub-d1a885402d4c6e43afdaa2155ee01bfad9afb805.tar.bz2 dsub-d1a885402d4c6e43afdaa2155ee01bfad9afb805.zip |
invalidateOptionsMenu is 4.0+
-rw-r--r-- | src/github/daneren2005/dsub/util/UserUtil.java | 3 |
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();
}
}
|