@nativescript-community/ui-material-bottom-navigation 6.2.13 → 6.2.14-alpha.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.
- package/index.android.js +13 -4
- package/package.json +3 -3
package/index.android.js
CHANGED
@@ -81,7 +81,7 @@ function initializeNativeClasses() {
|
|
81
81
|
var hasRemovingParent = this.getRemovingParentFragment();
|
82
82
|
// Get view as bitmap and set it as background. This is workaround for the disapearing nested fragments.
|
83
83
|
// TODO: Consider removing it when update to androidx.fragment:1.2.0
|
84
|
-
if (hasRemovingParent && this.owner.selectedIndex === this.index) {
|
84
|
+
if (hasRemovingParent && this.owner.selectedIndex === this.index && this.owner.nativeViewProtected) {
|
85
85
|
this.backgroundBitmap = this.loadBitmapFromView(this.owner.nativeViewProtected);
|
86
86
|
}
|
87
87
|
_super.prototype.onPause.call(this);
|
@@ -453,7 +453,10 @@ let BottomNavigation = class BottomNavigation extends TabNavigationBase {
|
|
453
453
|
}
|
454
454
|
hideFragment(fragment, fragmentManager) {
|
455
455
|
if (!fragmentManager) {
|
456
|
-
fragmentManager = this.
|
456
|
+
fragmentManager = this._getParentFragmentManagerFromFragment(fragment);
|
457
|
+
if (!fragmentManager) {
|
458
|
+
return;
|
459
|
+
}
|
457
460
|
}
|
458
461
|
if (fragment) {
|
459
462
|
if (!fragment.isAdded() || fragment.isRemoving()) {
|
@@ -483,7 +486,10 @@ let BottomNavigation = class BottomNavigation extends TabNavigationBase {
|
|
483
486
|
}
|
484
487
|
showFragment(fragment, fragmentManager) {
|
485
488
|
if (!fragmentManager) {
|
486
|
-
fragmentManager = this.
|
489
|
+
fragmentManager = this._getParentFragmentManagerFromFragment(fragment);
|
490
|
+
if (!fragmentManager) {
|
491
|
+
return;
|
492
|
+
}
|
487
493
|
}
|
488
494
|
if (fragment) {
|
489
495
|
if (!fragment.isAdded() || fragment.isRemoving()) {
|
@@ -513,7 +519,10 @@ let BottomNavigation = class BottomNavigation extends TabNavigationBase {
|
|
513
519
|
}
|
514
520
|
removeFragment(fragment, fragmentManager) {
|
515
521
|
if (!fragmentManager) {
|
516
|
-
fragmentManager = this.
|
522
|
+
fragmentManager = this._getParentFragmentManagerFromFragment(fragment);
|
523
|
+
if (!fragmentManager) {
|
524
|
+
return;
|
525
|
+
}
|
517
526
|
}
|
518
527
|
if (fragment) {
|
519
528
|
if (!fragment.isAdded() || fragment.isRemoving()) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-material-bottom-navigation",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.14-alpha.0+e4f5e0f9",
|
4
4
|
"description": "Material Design Bottom Navigation bars allow movement between primary destinations in an app. Tapping on a bottom navigation icon takes you directly to the associated view or refreshes the currently active view.",
|
5
5
|
"main": "bottomnavigation",
|
6
6
|
"sideEffects": false,
|
@@ -50,7 +50,7 @@
|
|
50
50
|
},
|
51
51
|
"readmeFilename": "README.md",
|
52
52
|
"dependencies": {
|
53
|
-
"@nativescript-community/ui-material-core": "^6.2.
|
53
|
+
"@nativescript-community/ui-material-core": "^6.2.14-alpha.0+e4f5e0f9"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "e4f5e0f9af9970098dbed6ccd9ea2e99a19e2e7d"
|
56
56
|
}
|