aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-06-07 15:22:51 +0200
committersteckbrief <steckbrief@chefmail.de>2016-06-07 15:22:51 +0200
commitf7d2e1560377b36d3730922a2fadaee05a570b49 (patch)
tree1c99bd75d863d82a82495fabe434892ee76b9842 /src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java
parentc5c5b417ddd66b4611b0493c0e0a8349adbd34a4 (diff)
Related to FS#140, Logo implementation moved to FloatingActionButton
- Appcompat v7 dependency added - References adjusted to work correctly with appcompat v7
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java b/src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java
index e376b6b3..1d704a9d 100644
--- a/src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java
+++ b/src/main/java/de/thedevstack/conversationsplus/ui/ManageAccountActivity.java
@@ -1,6 +1,5 @@
package de.thedevstack.conversationsplus.ui;
-import android.app.ActionBar;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
@@ -61,11 +60,9 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda
accountList.clear();
accountList.addAll(xmppConnectionService.getAccounts());
}
- ActionBar actionBar = getActionBar();
- if (actionBar != null) {
- actionBar.setHomeButtonEnabled(this.accountList.size() > 0);
- actionBar.setDisplayHomeAsUpEnabled(this.accountList.size() > 0);
- }
+
+ this.setHomeButtonAsUpEnabled(this.accountList.size() > 0);
+
invalidateOptionsMenu();
mAccountAdapter.notifyDataSetChanged();
}