@@ -45,28 +45,23 @@ class SplashScreenActivity : AppCompatActivity() {
4545 override fun onStart () {
4646 super .onStart()
4747
48- APISamplesInJava .samplesForCmab(this )
49- APISamplesInJava .samplesForCmabConfig(this )
50- APISamplesInJava .samplesForCmabConfig2(this )
51-
52- //
53- // val INITIALIZE_ASYNCHRONOUSLY = true
54- //
55- // // with the new Android O differences, you need to register the service for the intent filter you desire in code instead of
56- // // in the manifest.
57- // val eventRescheduler = EventRescheduler()
58- // applicationContext.registerReceiver(eventRescheduler, IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION))
59- //
60- // if (INITIALIZE_ASYNCHRONOUSLY) {
61- // optimizelyManager!!.initialize(this, R.raw.datafile) { _ ->
62- // addNotificationListeners()
63- // startVariation()
64- // }
65- // } else {
66- // optimizelyManager!!.initialize(this, R.raw.datafile)
67- // addNotificationListeners()
68- // startVariation()
69- // }
48+ val INITIALIZE_ASYNCHRONOUSLY = true
49+
50+ // with the new Android O differences, you need to register the service for the intent filter you desire in code instead of
51+ // in the manifest.
52+ val eventRescheduler = EventRescheduler ()
53+ applicationContext.registerReceiver(eventRescheduler, IntentFilter (WifiManager .WIFI_STATE_CHANGED_ACTION ))
54+
55+ if (INITIALIZE_ASYNCHRONOUSLY ) {
56+ optimizelyManager!! .initialize(this , R .raw.datafile) { _ ->
57+ addNotificationListeners()
58+ startVariation()
59+ }
60+ } else {
61+ optimizelyManager!! .initialize(this , R .raw.datafile)
62+ addNotificationListeners()
63+ startVariation()
64+ }
7065
7166 }
7267
0 commit comments