aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-26 20:37:05 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-26 20:37:05 -0700
commit578388ac5928afbb782a116645a792ab56b10b21 (patch)
tree930ef8748499317a7b52243ba9f92e730b195569 /src
parent1c1fd68a30685db4970a9f5ac77d51090b96d2f3 (diff)
parenta4f0e9da9698ef3e4edb8237b787e462ae7c2c12 (diff)
downloaddsub-578388ac5928afbb782a116645a792ab56b10b21.tar.gz
dsub-578388ac5928afbb782a116645a792ab56b10b21.tar.bz2
dsub-578388ac5928afbb782a116645a792ab56b10b21.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/util/UserUtil.java5
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();
}
}