forked from upstream-mirrors/quik
Fix indentation for constructor params
This commit is contained in:
+13
-12
@@ -22,15 +22,16 @@ import android.os.Build
|
||||
import com.moez.QKSMS.util.Preferences
|
||||
|
||||
data class NotificationPrefsState(
|
||||
val threadId: Long = 0,
|
||||
val conversationTitle: String = "",
|
||||
val notificationsEnabled: Boolean = true,
|
||||
val previewSummary: String = "",
|
||||
val previewId: Int = Preferences.NOTIFICATION_PREVIEWS_ALL,
|
||||
val action1Summary: String = "",
|
||||
val action2Summary: String = "",
|
||||
val action3Summary: String = "",
|
||||
val vibrationEnabled: Boolean = true,
|
||||
val ringtoneName: String = "",
|
||||
val qkReplyEnabled: Boolean = Build.VERSION.SDK_INT < Build.VERSION_CODES.N,
|
||||
val qkReplyTapDismiss: Boolean = true)
|
||||
val threadId: Long = 0,
|
||||
val conversationTitle: String = "",
|
||||
val notificationsEnabled: Boolean = true,
|
||||
val previewSummary: String = "",
|
||||
val previewId: Int = Preferences.NOTIFICATION_PREVIEWS_ALL,
|
||||
val action1Summary: String = "",
|
||||
val action2Summary: String = "",
|
||||
val action3Summary: String = "",
|
||||
val vibrationEnabled: Boolean = true,
|
||||
val ringtoneName: String = "",
|
||||
val qkReplyEnabled: Boolean = Build.VERSION.SDK_INT < Build.VERSION_CODES.N,
|
||||
val qkReplyTapDismiss: Boolean = true
|
||||
)
|
||||
|
||||
+5
-5
@@ -37,11 +37,11 @@ import javax.inject.Inject
|
||||
import javax.inject.Named
|
||||
|
||||
class NotificationPrefsViewModel @Inject constructor(
|
||||
@Named("threadId") private val threadId: Long,
|
||||
private val context: Context,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val navigator: Navigator,
|
||||
private val prefs: Preferences
|
||||
@Named("threadId") private val threadId: Long,
|
||||
private val context: Context,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val navigator: Navigator,
|
||||
private val prefs: Preferences
|
||||
) : QkViewModel<NotificationPrefsView, NotificationPrefsState>(NotificationPrefsState(threadId = threadId)) {
|
||||
|
||||
private val notifications = prefs.notifications(threadId)
|
||||
|
||||
Reference in New Issue
Block a user