From e934f015e8272d998999962c7df38efa9fe81c98 Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 26 May 2015 12:55:40 +0200 Subject: [PATCH] Enable 'Logs' navigation drawer entry only in DEBUG mode --- .../owncloud/android/ui/activity/FileDisplayActivity.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 1d4f17a790..c37d9271a3 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -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,