forked from upstream-mirrors/quik
Fix indentation for constructor params
This commit is contained in:
@@ -48,9 +48,9 @@ import javax.inject.Inject
|
||||
import javax.inject.Named
|
||||
|
||||
class GalleryPagerAdapter @Inject constructor(
|
||||
context: Context,
|
||||
@Named("partId") private val partId: Long,
|
||||
private val dateFormatter: DateFormatter
|
||||
context: Context,
|
||||
@Named("partId") private val partId: Long,
|
||||
private val dateFormatter: DateFormatter
|
||||
) : PagerAdapter() {
|
||||
|
||||
var parts: RealmResults<MmsPart>? = null
|
||||
|
||||
@@ -22,6 +22,7 @@ import com.moez.QKSMS.model.MmsPart
|
||||
import io.realm.RealmResults
|
||||
|
||||
data class GalleryState(
|
||||
val navigationVisible: Boolean = true,
|
||||
val title: String? = "",
|
||||
val parts: RealmResults<MmsPart>? = null)
|
||||
val navigationVisible: Boolean = true,
|
||||
val title: String? = "",
|
||||
val parts: RealmResults<MmsPart>? = null
|
||||
)
|
||||
|
||||
@@ -35,11 +35,11 @@ import javax.inject.Inject
|
||||
import javax.inject.Named
|
||||
|
||||
class GalleryViewModel @Inject constructor(
|
||||
conversationRepo: ConversationRepository,
|
||||
messageRepo: MessageRepository,
|
||||
@Named("partId") private val partId: Long,
|
||||
private val context: Context,
|
||||
private val saveImage: SaveImage
|
||||
conversationRepo: ConversationRepository,
|
||||
messageRepo: MessageRepository,
|
||||
@Named("partId") private val partId: Long,
|
||||
private val context: Context,
|
||||
private val saveImage: SaveImage
|
||||
) : QkViewModel<GalleryView, GalleryState>(GalleryState()) {
|
||||
|
||||
init {
|
||||
|
||||
Reference in New Issue
Block a user