|
7 | 7 | import android.animation.Animator; |
8 | 8 | import android.app.Activity; |
9 | 9 | import android.content.res.Configuration; |
10 | | -import android.view.View; |
11 | 10 | import android.view.ViewGroup; |
12 | 11 |
|
13 | 12 | import androidx.annotation.NonNull; |
14 | 13 | import androidx.annotation.RestrictTo; |
15 | 14 | import androidx.coordinatorlayout.widget.CoordinatorLayout; |
16 | | -import androidx.core.graphics.Insets; |
17 | | -import androidx.core.view.WindowInsetsCompat; |
18 | 15 |
|
19 | 16 | import com.aurelhubert.ahbottomnavigation.AHBottomNavigation; |
20 | 17 | import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem; |
@@ -108,7 +105,6 @@ public BottomTabsLayout createView() { |
108 | 105 | bottomTabs.addItems(createTabs()); |
109 | 106 | setInitialTab(resolveCurrentOptions); |
110 | 107 | tabsAttacher.attach(); |
111 | | - |
112 | 108 | return root; |
113 | 109 | } |
114 | 110 |
|
@@ -313,14 +309,6 @@ public Animator getPopAnimation(Options appearingOptions, Options disappearingOp |
313 | 309 | return presenter.getPopAnimation(appearingOptions, disappearingOptions); |
314 | 310 | } |
315 | 311 |
|
316 | | - @Override |
317 | | - protected WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat insets) { |
318 | | - Insets sysInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars()); |
319 | | - view.setPaddingRelative(0, 0, 0, sysInsets.bottom); |
320 | | - return WindowInsetsCompat.CONSUMED; |
321 | | - } |
322 | | - |
323 | | - |
324 | 312 | @RestrictTo(RestrictTo.Scope.TESTS) |
325 | 313 | public BottomTabs getBottomTabs() { |
326 | 314 | return bottomTabs; |
|
0 commit comments