title: Drawer toggle not working as expected (icon remains the same)
body: <p>I'm trying to implement an ActionBarDrawerToggle into my app but I can't make it. I've achieved to show the toggle in my toolbar, but the icon is the same always.</p>
  
  <p>This is toggle's icon when drawer is closed:</p>
  
  <p><a href="http://i.stack.imgur.com/HTcom.png" rel="nofollow">http://i.stack.imgur.com/HTcom.png</a></p>
  
  <p>And this is when drawer is opened:</p>
  
  <p><a href="http://i.stack.imgur.com/dX0Z2.png" rel="nofollow">http://i.stack.imgur.com/dX0Z2.png</a></p>
  
  <p>As you can see, it doesn't change from ic_drawer to back arrow. ic_drawer is never shown.</p>
  
  <p>So, here's my activity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
      initializeDrawer();
      populateDrawer();
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
      getSupportActionBar().setHomeButtonEnabled(true);
  }
  
  private void initializeDrawer() {
          tagTitles = getResources().getStringArray(R.array.item_names);
          icons = getResources().getStringArray(R.array.item_icons);
          dwLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
          dwList = (ListView) findViewById(R.id.drawer_list);
          dwList.setOnItemClickListener(new DrawerItemClickListener());
          dwToggle = new ActionBarDrawerToggle(this, dwLayout, toolbar, R.string.drawer_open, R.string.drawer_close) {
              public void onDrawerClosed(View view) {
                  getSupportActionBar().setTitle("pepe");
                  invalidateOptionsMenu();
              }
  
              public void onDrawerOpened(View drawerView) {
                  getSupportActionBar().setTitle("pop");
                  invalidateOptionsMenu();
              }
          };
          dwLayout.setDrawerListener(dwToggle);
      }
  
      private void populateDrawer() {
          ArrayList&lt;DrawerItem&gt; dwItems = new ArrayList&lt;&gt;();
          for (int i = 0; i &lt; tagTitles.length; i++) {
  //ignore this; population is not properly working
              dwItems.add(new DrawerItem(tagTitles[i], Resources.getSystem().getIdentifier("abc_ic_menu_copy_mtrl_am_alpha.png", "drawable", getBaseContext().getPackageResourcePath())));
          }
  
          dwList.setAdapter(new NavigationDrawerAdapter(this, dwItems));
      }
  
  @Override
  public void onPostCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
      super.onPostCreate(savedInstanceState, persistentState);
      dwToggle.syncState();
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      int id = item.getItemId();
  
      if (dwToggle.onOptionsItemSelected(item)) {
          return true;
      }
  
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
      super.onConfigurationChanged(newConfig);
      dwToggle.onConfigurationChanged(newConfig);
  }
  
  private class DrawerItemClickListener implements ListView.OnItemClickListener {
      @Override
      public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
          selectItem(position);
      }
  }
  </code></pre>
  
  <p>Thanks!</p>