~captainepoch/husky

8ef44dce277f7366ebba31b9cbad89855974a426 — Adolfo Santiago 2 months ago 60e40fe
Base classes
A husky/app/src/main/java/com/keylesspalace/tusky/core/ui/fragment/BaseBackFragment.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/ui/fragment/BaseBackFragment.kt +6 -0
@@ 0,0 1,6 @@
package com.keylesspalace.tusky.core.ui.fragment

abstract class BaseBackFragment(layoutRes: Int) : BaseFragment(layoutRes) {

    abstract fun onHandleBack(): Boolean
}

M husky/app/src/main/java/com/keylesspalace/tusky/core/ui/fragment/BaseFragment.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/ui/fragment/BaseFragment.kt +3 -1
@@ 19,5 19,7 @@

package com.keylesspalace.tusky.core.ui.fragment

class BaseFragment {
import com.zhuinden.simplestackextensions.fragments.KeyedFragment

open class BaseFragment(layoutRes: Int) : KeyedFragment(layoutRes) {
}

M husky/app/src/main/java/com/keylesspalace/tusky/core/ui/navigation/BaseKey.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/ui/navigation/BaseKey.kt +1 -3
@@ 23,7 23,5 @@ import com.zhuinden.simplestackextensions.fragments.DefaultFragmentKey

abstract class BaseKey : DefaultFragmentKey() {

    override fun getFragmentTag(): String {
        return this.javaClass.simpleName
    }
    override fun getFragmentTag(): String = this.javaClass.simpleName
}

M husky/app/src/main/java/com/keylesspalace/tusky/core/ui/navigation/BaseServiceKey.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/ui/navigation/BaseServiceKey.kt +1 -3
@@ 23,7 23,5 @@ import com.zhuinden.simplestackextensions.services.DefaultServiceProvider

abstract class BaseServiceKey : BaseKey(), DefaultServiceProvider.HasServices {

    override fun getScopeTag(): String {
        return this.javaClass.simpleName
    }
    override fun getScopeTag(): String = this.javaClass.simpleName
}

M husky/app/src/main/java/com/keylesspalace/tusky/core/utils/ApplicationUtils.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/utils/ApplicationUtils.kt +0 -1
@@ 20,7 20,6 @@
package com.keylesspalace.tusky.core.utils

import com.keylesspalace.tusky.BuildConfig
import com.keylesspalace.tusky.core.utils.Flavor.DEV

/**
 * Utils for getting application details.

M husky/app/src/main/java/com/keylesspalace/tusky/core/utils/DevUtils.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/utils/DevUtils.kt +0 -1
@@ 22,7 22,6 @@ package com.keylesspalace.tusky.core.utils
import android.os.Build.VERSION
import android.os.Build.VERSION_CODES
import android.os.StrictMode
import com.keylesspalace.tusky.BuildConfig
import timber.log.Timber

object DevUtils {