Files
bitcoin-summarizer/app/src/main/java/ru/vendetti/bitcoin_summarizer/App.kt
b3s23 70c6eb0834 Fixed some design issues;
Changed chart's horizontal axis so that it displays correct date for each value of fear greed index;
Implemented Cicerone as navigation library for the app;
Implemented two additional screens - About and Learn;
Implemented navigation drawer and made it open the respected screens as well as highlighting current screen in the list;
TODO: About and Learn screens (text)
2025-03-10 21:51:16 +05:00

23 lines
587 B
Kotlin

package ru.vendetti.bitcoin_summarizer
import android.app.Application
import android.os.Debug
import android.util.Log
import com.github.terrakok.cicerone.Cicerone
class App : Application() {
private val cicerone = Cicerone.create()
val router get() = cicerone.router
val navigatorHolder get() = cicerone.getNavigatorHolder()
override fun onCreate() {
super.onCreate()
INSTANCE = this
Log.println(Log.DEBUG, "App", "Instance is $INSTANCE")
}
companion object {
internal lateinit var INSTANCE: App
private set
}
}