From 19c66e3cf52082a7542805a93de4daa3008c8b06 Mon Sep 17 00:00:00 2001 From: tornaco Date: Mon, 11 Jul 2022 12:04:09 +0800 Subject: [PATCH] [app] hide wakelock feature --- .../java/github/tornaco/android/thanos/main/NavViewModel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/src/main/java/github/tornaco/android/thanos/main/NavViewModel.java b/android/app/src/main/java/github/tornaco/android/thanos/main/NavViewModel.java index 15fbf8c4d..a12ed8e09 100644 --- a/android/app/src/main/java/github/tornaco/android/thanos/main/NavViewModel.java +++ b/android/app/src/main/java/github/tornaco/android/thanos/main/NavViewModel.java @@ -407,6 +407,7 @@ private void loadPrebuiltFeatures() { .title(resources.getString(R.string.feature_title_wakelock_remover)) .requiredFeature(BuildProp.THANOX_FEATURE_WAKELOCK_REMOVER) .themeColor(R.color.nav_icon_wakelock_remover) + .disabled(!BuildProp.THANOS_BUILD_DEBUG) .build(), Tile.builder() .id(PrebuiltFeatureIds.ID_INFINITE_Z)