Apply ktlint format

This commit is contained in:
ganfra 2023-01-13 18:37:28 +01:00
parent b286b8bf9d
commit 1919058aac
28 changed files with 17 additions and 39 deletions

View file

@ -18,10 +18,10 @@ package io.element.android.x.features.rageshake.bugreport
sealed interface BugReportEvents {
object SendBugReport : BugReportEvents
object ResetAll: BugReportEvents
data class SetDescription(val description: String): BugReportEvents
data class SetSendLog(val sendLog: Boolean): BugReportEvents
data class SetSendCrashLog(val sendCrashlog: Boolean): BugReportEvents
data class SetCanContact(val canContact: Boolean): BugReportEvents
object ResetAll : BugReportEvents
data class SetDescription(val description: String) : BugReportEvents
data class SetSendLog(val sendLog: Boolean) : BugReportEvents
data class SetSendCrashLog(val sendCrashlog: Boolean) : BugReportEvents
data class SetCanContact(val canContact: Boolean) : BugReportEvents
data class SetSendScreenshot(val sendScreenshot: Boolean) : BugReportEvents
}

View file

@ -57,4 +57,3 @@ class BugReportNode @AssistedInject constructor(
plugins<Callback>().forEach { it.onBugReportSent() }
}
}

View file

@ -14,7 +14,6 @@
* limitations under the License.
*/
package io.element.android.x.features.rageshake.bugreport
import androidx.compose.foundation.layout.Box

View file

@ -31,7 +31,7 @@ fun CrashDetectionView(
) {
LogCompositions(tag = "Crash", msg = "CrashDetectionScreen")
fun onPopupDismissed(){
fun onPopupDismissed() {
state.eventSink(CrashDetectionEvents.ResetAllCrashData)
}

View file

@ -19,7 +19,7 @@ package io.element.android.x.features.rageshake.detection
import io.element.android.x.core.screenshot.ImageResult
sealed interface RageshakeDetectionEvents {
object Dismiss: RageshakeDetectionEvents
object Dismiss : RageshakeDetectionEvents
object Disable : RageshakeDetectionEvents
object StartDetection : RageshakeDetectionEvents
object StopDetection : RageshakeDetectionEvents

View file

@ -35,12 +35,11 @@ fun RageshakePreferencesView(
modifier: Modifier = Modifier,
onOpenRageshake: () -> Unit = {},
) {
fun onSensitivityChanged(sensitivity: Float){
fun onSensitivityChanged(sensitivity: Float) {
state.eventSink(RageshakePreferencesEvents.SetSensitivity(sensitivity = sensitivity))
}
fun onEnabledChanged(isEnabled: Boolean){
fun onEnabledChanged(isEnabled: Boolean) {
state.eventSink(RageshakePreferencesEvents.SetIsEnabled(isEnabled = isEnabled))
}