Enable 'Logs' navigation drawer entry only in DEBUG mode

This commit is contained in:
masensio 2015-05-26 12:55:40 +02:00
parent a9dad9e480
commit e934f015e8

View file

@ -274,12 +274,16 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
// TODO Enable when "On Device" is recovered
// On Device
// mDrawerItems.add(new NavigationDrawerItem(mDrawerTitles[2], mDrawerContentDescriptions[2]));
//mDrawerItems.add(new NavigationDrawerItem(mDrawerTitles[2],
// mDrawerContentDescriptions[2]));
// Settings
mDrawerItems.add(new NavigationDrawerItem(mDrawerTitles[2], mDrawerContentDescriptions[2]));
// Logs
mDrawerItems.add(new NavigationDrawerItem(mDrawerTitles[3],mDrawerContentDescriptions[3]));
if (BuildConfig.DEBUG) {
mDrawerItems.add(new NavigationDrawerItem(mDrawerTitles[3],
mDrawerContentDescriptions[3]));
}
// setting the nav drawer list adapter
mNavigationDrawerAdapter = new NavigationDrawerListAdapter(getApplicationContext(), this,