Skip to content

Commit

Permalink
Merge pull request #47 from vjs3/remove-deprecation
Browse files Browse the repository at this point in the history
deprecated ActionBarDrawerToggle updated
  • Loading branch information
megabitdragon committed Mar 9, 2017
2 parents 4c766f2 + db757ad commit 120caf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ dependencies {

compile "com.android.support:support-v4:25.1.1"
compile "com.android.support:support-v13:25.1.1"
compile 'com.android.support:appcompat-v7:25.1.1'
compile "com.github.dmytrodanylyk.android-process-button:library:1.0.4"
compile "com.jakewharton.byteunits:byteunits:0.9.1"
compile "com.jakewharton.timber:timber:4.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.view.Gravity;
import android.view.MenuItem;
import android.view.View;
Expand Down Expand Up @@ -118,12 +118,12 @@ private void setUpNavigation(Bundle state) {
private void setUpNavigationDrawer() {
this.navigationDrawerToggle = buildNavigationDrawerToggle();

getDrawer().setDrawerListener(this);
getDrawer().addDrawerListener(this);
getDrawer().setDrawerShadow(R.drawable.bg_shadow_drawer, Gravity.START);
}

private ActionBarDrawerToggle buildNavigationDrawerToggle() {
return new ActionBarDrawerToggle(this,getDrawer(), R.drawable.ic_ic_ham_menu,R.string.menu_navigation_open,R.string.menu_navigation_close);
return new ActionBarDrawerToggle(this,getDrawer(),R.string.menu_navigation_open,R.string.menu_navigation_close);
}

private DrawerLayout getDrawer() {
Expand Down

0 comments on commit 120caf0

Please sign in to comment.