Merge branch 'material_toolbar' of https://github.com/owncloud/android into material_toolbar

This commit is contained in:
Andy Scherzinger 2015-08-03 21:39:27 +02:00
commit a51fcd31a7

View file

@ -43,6 +43,7 @@ import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
@ -410,13 +411,20 @@ public class FileActivity extends AppCompatActivity
invalidateOptionsMenu();
}
};
mDrawerToggle.setToolbarNavigationClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.i("IT WORKS :)","");
}
});
// Set the list's click listener
mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
// Set the drawer toggle as the DrawerListener
mDrawerLayout.setDrawerListener(mDrawerToggle);
mDrawerToggle.setDrawerIndicatorEnabled(false);
}
/**