now works for initial opening and browsing down once

This commit is contained in:
AndyScherzinger 2015-07-31 17:22:19 +02:00
parent bfea14e876
commit 5b6bde5efc

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;
@ -411,12 +412,19 @@ public class FileActivity extends AppCompatActivity
}
};
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);
}
/**