This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
companion object { | |
//to save current fragment on saveInstanceState | |
const val CURENT_FRAGMET = "curent_fragment" | |
//tag for each fragment | |
const val TAG_HOME = "home" | |
const val TAG_SEARCH = "search" | |
const val TAG_NOTIFICATION = "notification" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity { | |
companion object { | |
//tag for each fragment | |
const val TAG_HOME = "home" | |
const val TAG_SEARCH = "search" | |
const val TAG_NOTIFICATION = "notification" | |
const val TAG_PROFILE = "profile" | |
} | |