|
|
|
@ -13,8 +13,6 @@ import android.view.Gravity
|
|
|
|
|
import android.view.LayoutInflater
|
|
|
|
|
import android.view.View
|
|
|
|
|
import android.view.ViewGroup
|
|
|
|
|
import android.view.Window
|
|
|
|
|
import android.view.WindowManager
|
|
|
|
|
import android.widget.Button
|
|
|
|
|
import android.widget.LinearLayout
|
|
|
|
|
import android.widget.PopupWindow
|
|
|
|
@ -212,28 +210,9 @@ class HomeFragment : Fragment() {
|
|
|
|
|
|
|
|
|
|
activity.themeManager.applyStatusBarTheme(activity)
|
|
|
|
|
|
|
|
|
|
setFragmentFullScreen(this.activity?.window, view.homeLayout)
|
|
|
|
|
|
|
|
|
|
return view
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun setFragmentFullScreen(window: Window?, homeScreen: View) {
|
|
|
|
|
|
|
|
|
|
window?.decorView?.setOnApplyWindowInsetsListener { _, insets ->
|
|
|
|
|
|
|
|
|
|
homeScreen.setPadding(
|
|
|
|
|
homeScreen.paddingLeft,
|
|
|
|
|
homeScreen.paddingTop + insets.stableInsetTop,
|
|
|
|
|
homeScreen.paddingRight,
|
|
|
|
|
homeScreen.paddingBottom + insets.stableInsetBottom
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
window.decorView.setOnApplyWindowInsetsListener(null)
|
|
|
|
|
|
|
|
|
|
insets.consumeSystemWindowInsets()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ExperimentalCoroutinesApi
|
|
|
|
|
@SuppressWarnings("LongMethod")
|
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
|
|
@ -459,8 +438,6 @@ class HomeFragment : Fragment() {
|
|
|
|
|
|
|
|
|
|
override fun onResume() {
|
|
|
|
|
super.onResume()
|
|
|
|
|
this.activity?.window?.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
|
|
|
|
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
|
|
|
|
|
hideToolbar()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -796,11 +773,6 @@ class HomeFragment : Fragment() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun onPause() {
|
|
|
|
|
this.activity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
|
|
|
|
|
super.onPause()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
|
private const val NON_TAB_ITEM_NUM = 3
|
|
|
|
|
private const val ANIM_SCROLL_DELAY = 100L
|
|
|
|
|