diff options
-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();
}
}
|