remove unnecessary changes

This commit is contained in:
Chumva 2018-08-28 12:29:06 +03:00
parent 6db6e83949
commit 6ed6dee124
2 changed files with 6 additions and 10 deletions

View file

@ -2,6 +2,7 @@ package net.osmand.telegram.ui
import android.app.Dialog
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.support.design.widget.BottomNavigationView
import android.support.v4.app.DialogFragment
@ -66,6 +67,11 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
adapter = ViewPagerAdapter(supportFragmentManager)
}
if (Build.VERSION.SDK_INT >= 23) {
AndroidUtils.enterToTransparentFullScreen(this)
} else if (Build.VERSION.SDK_INT >= 19) {
AndroidUtils.enterToTranslucentFullScreen(this)
}
bottomNav = findViewById<BottomNavigationView>(R.id.bottom_navigation).apply {
setOnNavigationItemSelectedListener {
var pos = -1

View file

@ -75,16 +75,6 @@ class MyLocationTabFragment : Fragment(), TelegramListener {
private var updateEnable: Boolean = false
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val activity = requireActivity()
if (Build.VERSION.SDK_INT >= 23) {
AndroidUtils.enterToTransparentFullScreen(activity)
} else if (Build.VERSION.SDK_INT >= 19) {
AndroidUtils.enterToTranslucentFullScreen(activity)
}
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,