diff --git a/src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java b/src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java
index c2f0970a26..1068d0dc5b 100644
--- a/src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java
+++ b/src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java
@@ -113,10 +113,10 @@ public class UserInfoActivity extends FileActivity {
@BindView(R.id.user_icon)
public ImageView avatar;
- @BindView(R.id.drawer_username)
+ @BindView(R.id.userinfo_username)
public TextView userName;
- @BindView(R.id.drawer_username_full)
+ @BindView(R.id.userinfo_username_full)
public TextView fullName;
@BindView(R.id.phone_container)
@@ -277,7 +277,7 @@ public class UserInfoActivity extends FileActivity {
private void setHeaderImage() {
if (getStorageManager().getCapability(account.name).getServerBackground() != null) {
- final AppBarLayout appBar = (AppBarLayout) findViewById(R.id.appbar);
+ final AppBarLayout appBar = findViewById(R.id.appbar);
if (appBar != null) {
String background = getStorageManager().getCapability(account.name).getServerBackground();
diff --git a/src/main/res/layout/toolbar_user_information.xml b/src/main/res/layout/toolbar_user_information.xml
index 9134a2b060..1e236e8d53 100644
--- a/src/main/res/layout/toolbar_user_information.xml
+++ b/src/main/res/layout/toolbar_user_information.xml
@@ -76,7 +76,7 @@
android:orientation="vertical">