mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1390 App | Enhanced object and space debugging (#70)
This commit is contained in:
parent
1151585acd
commit
7c7b281b36
5 changed files with 5 additions and 16 deletions
|
@ -25,9 +25,6 @@ class DefaultFeatureToggles @Inject constructor(
|
|||
override val isLogEditorControlPanelMachine =
|
||||
BuildConfig.LOG_EDITOR_CONTROL_PANEL && buildProvider.isDebug()
|
||||
|
||||
override val isTroubleshootingMode
|
||||
get() = prefs.getBoolean(context.getString(R.string.trouble_mode), BuildConfig.DEBUG)
|
||||
|
||||
override val isNewOnBoardingEnabled: Boolean = false
|
||||
|
||||
override val isAutoUpdateEnabled: Boolean = false
|
||||
|
|
|
@ -79,7 +79,7 @@ class ProfileFragment : BaseBottomSheetComposeFragment() {
|
|||
onSpaceDebugClicked = { throttle { vm.onSpaceDebugClicked() } },
|
||||
isLogoutInProgress = vm.isLoggingOut.collectAsState().value,
|
||||
isDebugSpaceReportInProgress = vm.isDebugSpaceReportInProgress.collectAsState().value,
|
||||
isShowDebug = toggles.isTroubleshootingMode,
|
||||
isShowDebug = true,
|
||||
onNameChange = { vm.onNameChange(it) },
|
||||
onProfileIconClick = { proceedWithIconClick() },
|
||||
account = vm.profileData.collectAsStateWithLifecycle().value,
|
||||
|
|
|
@ -14,8 +14,6 @@ interface FeatureToggles {
|
|||
|
||||
val isLogEditorControlPanelMachine: Boolean
|
||||
|
||||
val isTroubleshootingMode: Boolean
|
||||
|
||||
val isNewOnBoardingEnabled: Boolean
|
||||
|
||||
}
|
|
@ -61,14 +61,14 @@ class ObjectMenuOptionsProviderImpl(
|
|||
hasIcon = hasIcon,
|
||||
hasCover = hasCover,
|
||||
hasLayout = hasLayout,
|
||||
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
|
||||
hasDiagnosticsVisibility = true
|
||||
)
|
||||
ObjectType.Layout.TODO -> Options(
|
||||
hasIcon = false,
|
||||
hasCover = hasCover,
|
||||
hasLayout = hasLayout,
|
||||
hasRelations = true,
|
||||
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
|
||||
hasDiagnosticsVisibility = true,
|
||||
)
|
||||
|
||||
ObjectType.Layout.NOTE -> Options(
|
||||
|
@ -76,7 +76,7 @@ class ObjectMenuOptionsProviderImpl(
|
|||
hasCover = false,
|
||||
hasLayout = hasLayout,
|
||||
hasRelations = true,
|
||||
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
|
||||
hasDiagnosticsVisibility = true,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
@ -85,7 +85,7 @@ class ObjectMenuOptionsProviderImpl(
|
|||
hasIcon = hasIcon,
|
||||
hasCover = hasCover,
|
||||
hasLayout = hasLayout,
|
||||
hasDiagnosticsVisibility = featureToggles.isTroubleshootingMode,
|
||||
hasDiagnosticsVisibility = true,
|
||||
)
|
||||
}
|
||||
return options
|
||||
|
|
|
@ -120,12 +120,6 @@ private fun Settings(
|
|||
onClick = onAboutAppClicked
|
||||
)
|
||||
Divider(paddingStart = 60.dp)
|
||||
Option(
|
||||
image = R.drawable.ic_debug,
|
||||
text = stringResource(R.string.debug),
|
||||
onClick = onDebugClicked
|
||||
)
|
||||
Divider(paddingStart = 60.dp)
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue