diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-26 08:40:34 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-26 08:40:34 -0700 |
commit | a4f0e9da9698ef3e4edb8237b787e462ae7c2c12 (patch) | |
tree | c29011b7bfc0feedbb17db56acfcee94ce906108 /src | |
parent | d1a885402d4c6e43afdaa2155ee01bfad9afb805 (diff) | |
download | dsub-a4f0e9da9698ef3e4edb8237b787e462ae7c2c12.tar.gz dsub-a4f0e9da9698ef3e4edb8237b787e462ae7c2c12.tar.bz2 dsub-a4f0e9da9698ef3e4edb8237b787e462ae7c2c12.zip |
Non-stupid fix for GB crash
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/UserUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/UserUtil.java b/src/github/daneren2005/dsub/util/UserUtil.java index c6e307e8..baa56935 100644 --- a/src/github/daneren2005/dsub/util/UserUtil.java +++ b/src/github/daneren2005/dsub/util/UserUtil.java @@ -21,6 +21,7 @@ import android.content.Context; import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Build;
+import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.View;
import android.widget.Adapter;
@@ -79,8 +80,8 @@ public final class UserUtil { @Override
protected void done(Void result) {
- if(context instanceof Activity && Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
- ((Activity) context).invalidateOptionsMenu();
+ if(context instanceof ActionBarActivity) {
+ ((ActionBarActivity) context).supportInvalidateOptionsMenu();
}
}
|