react-native-navigation 7.49.0 → 7.51.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,14 +7,11 @@ import static com.reactnativenavigation.utils.ObjectUtils.perform;
|
|
|
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 class BottomTabsController extends ParentController<BottomTabsLayout> imp
|
|
|
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 class BottomTabsController extends ParentController<BottomTabsLayout> imp
|
|
|
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;
|
|
@@ -284,6 +284,9 @@ public class Navigator extends ParentController<ViewGroup> {
|
|
|
284
284
|
|
|
285
285
|
public void onHostResume() {
|
|
286
286
|
overlayManager.onHostResume();
|
|
287
|
+
if (root != null && root.getView() != null) {
|
|
288
|
+
root.getView().requestLayout();
|
|
289
|
+
}
|
|
287
290
|
if (!modalStack.isEmpty()) {
|
|
288
291
|
modalStack.onHostResume();
|
|
289
292
|
if(modalStack.peekDisplayedOverCurrentContext()){
|