Skip to content

Instantly share code, notes, and snippets.

@wisnukurniawan
Last active February 2, 2020 07:37
Show Gist options
  • Save wisnukurniawan/da8b1a2e194f79a37928c0aac6d83b2b to your computer and use it in GitHub Desktop.
Save wisnukurniawan/da8b1a2e194f79a37928c0aac6d83b2b to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// Get list of FeatureLaunchable from custom Application
val features = (applicationContext as? Launcher.Provider)?.launcher?.features
// println(features)
//
// arrayListOf<FeatureLaunchable>(
// OrderFlightFeature(),
// OrderHotelFeature(),
// OrderTrainFeature(),
// TransactionFeature(),
// SettingFeature()
// )
// Mapping FeatureLaunchable into UI model
// Then set the UI model in our recycler view
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment