From 0667c0ce49b636c03f408e4fa1d1a837a70f4847 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 20 Oct 2020 10:01:24 +0200 Subject: [PATCH] Never show the green gear in production --- .../java/im/vector/app/features/home/HomeDrawerFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDrawerFragment.kt b/vector/src/main/java/im/vector/app/features/home/HomeDrawerFragment.kt index 12689cd983..e267248fc3 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDrawerFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDrawerFragment.kt @@ -19,6 +19,7 @@ package im.vector.app.features.home import android.os.Bundle import android.view.View import androidx.core.view.isVisible +import im.vector.app.BuildConfig import im.vector.app.R import im.vector.app.core.extensions.observeK import im.vector.app.core.extensions.replaceChildFragment @@ -75,7 +76,7 @@ class HomeDrawerFragment @Inject constructor( } // Debug menu - homeDrawerHeaderDebugView.isVisible = vectorPreferences.developerMode() + homeDrawerHeaderDebugView.isVisible = BuildConfig.DEBUG && vectorPreferences.developerMode() homeDrawerHeaderDebugView.debouncedClicks { sharedActionViewModel.post(HomeActivitySharedAction.CloseDrawer) navigator.openDebug(requireActivity())