Apply ktlint format
This commit is contained in:
parent
b286b8bf9d
commit
1919058aac
28 changed files with 17 additions and 39 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,4 +57,3 @@ class BugReportNode @AssistedInject constructor(
|
|||
plugins<Callback>().forEach { it.onBugReportSent() }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package io.element.android.x.features.rageshake.bugreport
|
||||
|
||||
import androidx.compose.foundation.layout.Box
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ fun CrashDetectionView(
|
|||
) {
|
||||
LogCompositions(tag = "Crash", msg = "CrashDetectionScreen")
|
||||
|
||||
fun onPopupDismissed(){
|
||||
fun onPopupDismissed() {
|
||||
state.eventSink(CrashDetectionEvents.ResetAllCrashData)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue