Commit c0daeb3c authored by wanglei's avatar wanglei

...

parent 3560a8d1
...@@ -36,7 +36,17 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -36,7 +36,17 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
override fun initView() { override fun initView() {
BarUtils.setStatusBarLightMode(this, true) BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
// binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
if (!checkStorePermission()) {
if (dialog == null) {
dialog = showPermissionBottomSheet(launcher) {
AdmobBannerUtils.showCollapsibleBannerAd(this, binding.flAd)
}
}
} else {
AdmobBannerUtils.showCollapsibleBannerAd(this, binding.flAd)
}
} }
override fun initListener() { override fun initListener() {
...@@ -48,15 +58,6 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -48,15 +58,6 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
if (!checkStorePermission()) {
if (dialog == null) {
dialog = showPermissionBottomSheet(launcher) {
}
}
} else {
AdmobBannerUtils.showCollapsibleBannerAd(this, binding.flAd)
}
lifecycleScope.launch(Dispatchers.Main) { lifecycleScope.launch(Dispatchers.Main) {
delay(1000) delay(1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment