From f822c1c2e4eeb90fcae9ae924026d71eeb67e58d Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Wed, 10 Jul 2019 18:47:18 +0200 Subject: [PATCH] Added default to flash configuration --- .../topjohnwu/magisk/model/entity/internal/Configuration.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/Configuration.kt b/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/Configuration.kt index 40570d4b0..89dff679f 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/Configuration.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/Configuration.kt @@ -14,6 +14,10 @@ sealed class Configuration : Parcelable { @Parcelize object Secondary : Flash() + companion object { + operator fun invoke(): Flash = Primary + } + } @Parcelize