From aed07abecf1ca53eebcf93e00d3c9bfa9e3f6884 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 28 Aug 2018 12:37:54 +0300 Subject: [PATCH] move statusBar check under setContentView --- OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt index af7cb56eb7..bea87d42a2 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt @@ -57,13 +57,14 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + if (Build.VERSION.SDK_INT >= 23) { AndroidUtils.enterToTransparentFullScreen(this) } else if (Build.VERSION.SDK_INT >= 19) { AndroidUtils.enterToTranslucentFullScreen(this) } - setContentView(R.layout.activity_main) - + paused = false val viewPager = findViewById(R.id.view_pager).apply {