Fix indentation for constructor params

This commit is contained in:
moezbhatti
2018-12-25 18:13:17 -05:00
parent a1dfba2e4b
commit 728af5168c
96 changed files with 482 additions and 476 deletions
@@ -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
)
@@ -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)