mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Animate visibility of the developer option entry point.
Related to #6703
This commit is contained in:
+4
-1
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
package io.element.android.features.preferences.impl.root
|
package io.element.android.features.preferences.impl.root
|
||||||
|
|
||||||
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.BoxScope
|
import androidx.compose.foundation.layout.BoxScope
|
||||||
@@ -337,7 +338,9 @@ private fun ColumnScope.GeneralSection(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
// Put developer settings at the end, so nothing bad happens if the user clicks 8 times to enable the entry
|
// Put developer settings at the end, so nothing bad happens if the user clicks 8 times to enable the entry
|
||||||
if (state.showDeveloperSettings) {
|
AnimatedVisibility(
|
||||||
|
visible = state.showDeveloperSettings,
|
||||||
|
) {
|
||||||
DeveloperPreferencesView(onOpenDeveloperSettings)
|
DeveloperPreferencesView(onOpenDeveloperSettings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user