@nativescript-community/ui-material-bottom-navigation 6.2.12 → 6.2.14

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.2.14](https://github.com/nativescript-community/ui-material-components/compare/v6.2.13...v6.2.14) (2022-02-16)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.2.13](https://github.com/nativescript-community/ui-material-components/compare/v6.2.12...v6.2.13) (2022-02-09)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
17
+
18
+
19
+
20
+
21
+
6
22
  ## [6.2.12](https://github.com/nativescript-community/ui-material-components/compare/v6.2.11...v6.2.12) (2022-02-08)
7
23
 
8
24
  **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
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._getFragmentManager();
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._getFragmentManager();
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._getFragmentManager();
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.12",
3
+ "version": "6.2.14",
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.12"
53
+ "@nativescript-community/ui-material-core": "^6.2.14"
54
54
  },
55
- "gitHead": "12cd033bda7ec0144c685693f13aa64a08fe2061"
55
+ "gitHead": "750b56e352d255473933621e1466b3bd891f930d"
56
56
  }