aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-10-27 17:55:26 -0700
committerScott Jackson <daneren2005@gmail.com>2015-10-27 17:55:26 -0700
commit9b17627f1b0aa12f9f8cd45cc7747080091069ef (patch)
treee468cb25639e82286c0d1c1bc57458cce284f474 /app
parentd9c624ad2396beb5a489193311f7275dfba2da48 (diff)
downloaddsub-9b17627f1b0aa12f9f8cd45cc7747080091069ef.tar.gz
dsub-9b17627f1b0aa12f9f8cd45cc7747080091069ef.tar.bz2
dsub-9b17627f1b0aa12f9f8cd45cc7747080091069ef.zip
Fix options not refreshing after loading user since moved to AppCompatActivity
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/UserUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/UserUtil.java b/app/src/main/java/github/daneren2005/dsub/util/UserUtil.java
index e5388d72..b9a3a3cf 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/UserUtil.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/UserUtil.java
@@ -20,7 +20,7 @@ import android.support.v7.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
-import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
@@ -98,8 +98,8 @@ public final class UserUtil {
@Override
protected void done(Void result) {
- if(context instanceof ActionBarActivity) {
- ((ActionBarActivity) context).supportInvalidateOptionsMenu();
+ if(context instanceof AppCompatActivity) {
+ ((AppCompatActivity) context).supportInvalidateOptionsMenu();
}
}