Skip to content

Commit

Permalink
Update MaterialDrawer; Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Oct 14, 2015
1 parent fae50a6 commit bbeaa76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ dependencies {
compile('com.mikepenz:aboutlibraries:5.2.4@aar') {
transitive = true
}
compile('com.mikepenz:materialdrawer:4.3.4@aar') {
compile('com.mikepenz:materialdrawer:4.3.6@aar') {
transitive = true
}
compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
compile('com.github.rubengees:introduction:1.1.2@aar') {
transitive = true;
transitive = true
}
compile('com.github.proxer:ProxerLibAndroid:1.1.2@aar') {
transitive = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,16 @@ protected void onCreate(Bundle savedInstanceState) {
userManager.addOnLoginStateListener(new UserManager.OnLoginStateListener() {
@Override
public void onLogin(@NonNull LoginUser user) {
drawerHelper.refreshHeader();
if (!isFinishing()) {
drawerHelper.refreshHeader();
}
}

@Override
public void onLogout() {
drawerHelper.refreshHeader();
if (!isFinishing()) {
drawerHelper.refreshHeader();
}
}

@Override
Expand Down Expand Up @@ -289,7 +293,7 @@ private boolean handleOnHeaderAccountClick(int id) {
}
}

private void showLoginDialog(){
private void showLoginDialog() {
LoginDialog.newInstance().show(getSupportFragmentManager(), "dialog_login");
}

Expand Down

0 comments on commit bbeaa76

Please sign in to comment.