forked from upstream-mirrors/quik
Fix indentation for constructor params
This commit is contained in:
@@ -45,10 +45,10 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class Navigator @Inject constructor(
|
||||
private val context: Context,
|
||||
private val analyticsManager: AnalyticsManager,
|
||||
private val notificationManager: NotificationManager,
|
||||
private val permissions: PermissionManager
|
||||
private val context: Context,
|
||||
private val analyticsManager: AnalyticsManager,
|
||||
private val notificationManager: NotificationManager,
|
||||
private val permissions: PermissionManager
|
||||
) {
|
||||
|
||||
private fun startActivity(intent: Intent) {
|
||||
|
||||
+8
-8
@@ -37,8 +37,8 @@ inline fun LifecycleOwner.scope(): LifecycleScopeProvider<*> = AndroidLifecycleS
|
||||
* @param untilEvent the event until the scope is valid.
|
||||
*/
|
||||
@CheckReturnValue
|
||||
inline fun LifecycleOwner.scope(untilEvent: Lifecycle.Event): LifecycleScopeProvider<*>
|
||||
= AndroidLifecycleScopeProvider.from(this, untilEvent)
|
||||
inline fun LifecycleOwner.scope(untilEvent: Lifecycle.Event): LifecycleScopeProvider<*> =
|
||||
AndroidLifecycleScopeProvider.from(this, untilEvent)
|
||||
|
||||
/**
|
||||
* Extension that returns a [LifecycleScopeProvider] for this [LifecycleOwner].
|
||||
@@ -46,8 +46,8 @@ inline fun LifecycleOwner.scope(untilEvent: Lifecycle.Event): LifecycleScopeProv
|
||||
* @param boundaryResolver function that resolves the event boundary.
|
||||
*/
|
||||
@CheckReturnValue
|
||||
inline fun LifecycleOwner.scope(boundaryResolver: Function<Event, Event>): LifecycleScopeProvider<*>
|
||||
= AndroidLifecycleScopeProvider.from(this, boundaryResolver)
|
||||
inline fun LifecycleOwner.scope(boundaryResolver: Function<Event, Event>): LifecycleScopeProvider<*> =
|
||||
AndroidLifecycleScopeProvider.from(this, boundaryResolver)
|
||||
|
||||
/**
|
||||
* Extension that returns a [LifecycleScopeProvider] for this [Lifecycle].
|
||||
@@ -61,8 +61,8 @@ inline fun Lifecycle.scope(): LifecycleScopeProvider<*> = AndroidLifecycleScopeP
|
||||
* @param untilEvent the event until the scope is valid.
|
||||
*/
|
||||
@CheckReturnValue
|
||||
inline fun Lifecycle.scope(untilEvent: Lifecycle.Event): LifecycleScopeProvider<*>
|
||||
= AndroidLifecycleScopeProvider.from(this, untilEvent)
|
||||
inline fun Lifecycle.scope(untilEvent: Lifecycle.Event): LifecycleScopeProvider<*> =
|
||||
AndroidLifecycleScopeProvider.from(this, untilEvent)
|
||||
|
||||
/**
|
||||
* Extension that returns a [LifecycleScopeProvider] for this [Lifecycle].
|
||||
@@ -70,5 +70,5 @@ inline fun Lifecycle.scope(untilEvent: Lifecycle.Event): LifecycleScopeProvider<
|
||||
* @param boundaryResolver function that resolves the event boundary.
|
||||
*/
|
||||
@CheckReturnValue
|
||||
inline fun Lifecycle.scope(boundaryResolver: Function<Event, Event>): LifecycleScopeProvider<*>
|
||||
= AndroidLifecycleScopeProvider.from(this, boundaryResolver)
|
||||
inline fun Lifecycle.scope(boundaryResolver: Function<Event, Event>): LifecycleScopeProvider<*> =
|
||||
AndroidLifecycleScopeProvider.from(this, boundaryResolver)
|
||||
@@ -42,8 +42,8 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class BillingManager @Inject constructor(
|
||||
context: Context,
|
||||
private val analyticsManager: AnalyticsManager
|
||||
context: Context,
|
||||
private val analyticsManager: AnalyticsManager
|
||||
) : PurchasesUpdatedListener {
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -28,8 +28,8 @@ import com.moez.QKSMS.util.tryOrNull
|
||||
import javax.inject.Inject
|
||||
|
||||
class MessageDetailsFormatter @Inject constructor(
|
||||
private val context: Context,
|
||||
private val dateFormatter: DateFormatter
|
||||
private val context: Context,
|
||||
private val dateFormatter: DateFormatter
|
||||
) {
|
||||
|
||||
fun format(message: Message): String {
|
||||
|
||||
@@ -54,12 +54,12 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class NotificationManagerImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val colors: Colors,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val prefs: Preferences,
|
||||
private val messageRepo: MessageRepository,
|
||||
private val permissions: PermissionManager
|
||||
private val context: Context,
|
||||
private val colors: Colors,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val prefs: Preferences,
|
||||
private val messageRepo: MessageRepository,
|
||||
private val permissions: PermissionManager
|
||||
) : com.moez.QKSMS.manager.NotificationManager {
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -37,9 +37,9 @@ import me.leolin.shortcutbadger.ShortcutBadger
|
||||
import javax.inject.Inject
|
||||
|
||||
class ShortcutManagerImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val messageRepo: MessageRepository
|
||||
private val context: Context,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val messageRepo: MessageRepository
|
||||
) : com.moez.QKSMS.manager.ShortcutManager {
|
||||
|
||||
override fun updateBadge() {
|
||||
|
||||
@@ -34,9 +34,9 @@ import com.moez.QKSMS.util.Preferences
|
||||
import javax.inject.Inject
|
||||
|
||||
class TextViewStyler @Inject constructor(
|
||||
private val prefs: Preferences,
|
||||
private val colors: Colors,
|
||||
private val fontProvider: FontProvider
|
||||
private val prefs: Preferences,
|
||||
private val colors: Colors,
|
||||
private val fontProvider: FontProvider
|
||||
) {
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user