@@ -32,7 +32,6 @@ import at.techbee.jtx.MainActivity2.Companion.BUILD_FLAVOR_GOOGLEPLAY
3232import at.techbee.jtx.MainActivity2.Companion.BUILD_FLAVOR_OSE
3333import at.techbee.jtx.database.Module
3434import at.techbee.jtx.database.properties.Attachment
35- import at.techbee.jtx.flavored.AdManager
3635import at.techbee.jtx.flavored.BillingManager
3736import at.techbee.jtx.flavored.JtxReviewManager
3837import at.techbee.jtx.ui.GlobalStateHolder
@@ -74,7 +73,7 @@ const val AUTHORITY_FILEPROVIDER = "at.techbee.jtx.fileprovider"
7473
7574 const val BUILD_FLAVOR_OSE = " ose"
7675 const val BUILD_FLAVOR_GOOGLEPLAY = " gplay"
77- const val BUILD_FLAVOR_HUAWEI = " huawei "
76+ const val BUILD_FLAVOR_GENERIC = " generic "
7877 }
7978
8079 override fun onCreate (savedInstanceState : Bundle ? ) {
@@ -90,16 +89,8 @@ const val AUTHORITY_FILEPROVIDER = "at.techbee.jtx.fileprovider"
9089
9190 TimeZoneRegistryFactory .getInstance().createRegistry() // necessary for ical4j
9291 createNotificationChannel() // Register Notification Channel for Reminders
93-
9492 BillingManager .getInstance().initialise(this )
9593
96- /* TODO
97- billingManager?.isProPurchased?.observe(this) { isPurchased ->
98- if(!isPurchased)
99- AdManager.getInstance()?.checkOrRequestConsentAndLoadAds(this, applicationContext)
100- }
101- */
102-
10394 setContent {
10495 val isProPurchased = BillingManager .getInstance().isProPurchased.observeAsState()
10596 JtxBoardTheme (
@@ -123,7 +114,6 @@ const val AUTHORITY_FILEPROVIDER = "at.techbee.jtx.fileprovider"
123114
124115 override fun onResume () {
125116 super .onResume()
126- AdManager .getInstance()?.resumeAds()
127117
128118 // handle intents, but only if it wasn't already handled
129119 if (intent.hashCode() != lastProcessedIntentHash) {
@@ -178,12 +168,6 @@ const val AUTHORITY_FILEPROVIDER = "at.techbee.jtx.fileprovider"
178168 }
179169 }
180170
181- override fun onPause () {
182- super .onPause()
183- AdManager .getInstance()?.pauseAds()
184- }
185-
186-
187171 private fun createNotificationChannel () {
188172 // Create the NotificationChannel, but only on API 26+ because
189173 // the NotificationChannel class is new and not in the support library
@@ -273,7 +257,6 @@ fun MainNavHost(
273257 navController = navController)
274258 }
275259 composable(NavigationDrawerDestination .DONATE .name) { DonateScreen (navController) }
276- composable(NavigationDrawerDestination .ADINFO .name) { AdInfoScreen (navController) }
277260 composable(NavigationDrawerDestination .ABOUT .name) {
278261 val viewModel: AboutViewModel = viewModel()
279262 AboutScreen (
@@ -341,7 +324,6 @@ fun MainNavHost(
341324 }
342325 )
343326 }
344-
345327}
346328
347329@Preview(showBackground = true )
0 commit comments