Skip to content

Commit

Permalink
Fix needed for the updated navigation drawer
Browse files Browse the repository at this point in the history
Fix needed for the updated navigation drawer
  • Loading branch information
Mark Heinis committed Jun 14, 2019
1 parent d33f308 commit fc2544f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/src/main/java/nl/hnogames/domoticz/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,9 @@ public void drawNavigationMenu(final ConfigInfo mConfig) {
if (config == null)
config = mServerUtil.getActiveServer().getConfigInfo(this);

ProfileDrawerItem loggedinAccount = new ProfileDrawerItem().withName("Logged in").withEmail(domoticz.getUserCredentials(Domoticz.Authentication.USERNAME))
ProfileDrawerItem loggedinAccount = new ProfileDrawerItem()
.withName("Logged in")
.withEmail(domoticz.getUserCredentials(Domoticz.Authentication.USERNAME))
.withIcon(R.mipmap.ic_launcher);
if (mSharedPrefs.darkThemeEnabled()) {
loggedinAccount.withSelectedColorRes(R.color.primary);
Expand All @@ -820,6 +822,7 @@ public void drawNavigationMenu(final ConfigInfo mConfig) {
.withHeaderBackground(R.drawable.darkheader)
.addProfiles(loggedinAccount)
.withOnlyMainProfileImageVisible(true)
.withTextColorRes(R.color.white)
.withOnAccountHeaderListener(new AccountHeader.OnAccountHeaderListener() {
@Override
@DebugLog
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Fri Jun 14 15:47:17 CEST 2019
VERSION_BUILD=5911
#Fri Jun 14 16:10:47 CEST 2019
VERSION_BUILD=5916
VERSION_PATCH=110
VERSION_CODE=426
2 changes: 1 addition & 1 deletion domoticzapi/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Fri Jun 14 15:47:17 CEST 2019
#Fri Jun 14 16:10:47 CEST 2019
VERSION_BUILD=3675
VERSION_PATCH=219
VERSION_CODE=219

0 comments on commit fc2544f

Please sign in to comment.