@nativescript-community/ui-material-bottom-navigation 6.2.10 → 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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.13](https://github.com/nativescript-community/ui-material-components/compare/v6.2.12...v6.2.13) (2022-02-09)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.2.12](https://github.com/nativescript-community/ui-material-components/compare/v6.2.11...v6.2.12) (2022-02-08)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.2.11](https://github.com/nativescript-community/ui-material-components/compare/v6.2.10...v6.2.11) (2022-02-07)
23
+
24
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
25
+
26
+
27
+
28
+
29
+
6
30
  ## [6.2.10](https://github.com/nativescript-community/ui-material-components/tree/master/packages/bottom-navigation/compare/v6.2.9...v6.2.10) (2022-01-20)
7
31
 
8
32
  **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.10",
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.10"
53
+ "@nativescript-community/ui-material-core": "^6.2.14-alpha.0+e4f5e0f9"
54
54
  },
55
- "gitHead": "d12ac661176680731e50578fe874b2b006eb0f92"
55
+ "gitHead": "e4f5e0f9af9970098dbed6ccd9ea2e99a19e2e7d"
56
56
  }
package/pnpm-lock.yaml DELETED
@@ -1,90 +0,0 @@
1
- dependencies:
2
- '@nativescript-community/ui-material-core': 5.2.1
3
- lockfileVersion: 5.2
4
- packages:
5
- /@nativescript-community/ui-material-core/5.2.1:
6
- dependencies:
7
- '@nativescript/hook': 2.0.0
8
- dev: false
9
- requiresBuild: true
10
- resolution:
11
- integrity: sha512-Nu0ujgzvpH4sN7Rebk3YsEcnbTR2uWXL+xy95gXflR42qa1YUVgMTXZJJm3sEcCEMKeneMODc8lpIrLOAf6mCg==
12
- /@nativescript/hook/2.0.0:
13
- dependencies:
14
- glob: 7.1.6
15
- mkdirp: 1.0.4
16
- dev: false
17
- resolution:
18
- integrity: sha512-v3Hj3Zpd69sQJfFpDNXonV0EjO1a2OL4l48wlo1Ycsqk4r7RY822d/irFTjt0LllRG0OcdEGgfG6wKb0YgPyHw==
19
- /balanced-match/1.0.0:
20
- dev: false
21
- resolution:
22
- integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
23
- /brace-expansion/1.1.11:
24
- dependencies:
25
- balanced-match: 1.0.0
26
- concat-map: 0.0.1
27
- dev: false
28
- resolution:
29
- integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
30
- /concat-map/0.0.1:
31
- dev: false
32
- resolution:
33
- integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
34
- /fs.realpath/1.0.0:
35
- dev: false
36
- resolution:
37
- integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
38
- /glob/7.1.6:
39
- dependencies:
40
- fs.realpath: 1.0.0
41
- inflight: 1.0.6
42
- inherits: 2.0.4
43
- minimatch: 3.0.4
44
- once: 1.4.0
45
- path-is-absolute: 1.0.1
46
- dev: false
47
- resolution:
48
- integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
49
- /inflight/1.0.6:
50
- dependencies:
51
- once: 1.4.0
52
- wrappy: 1.0.2
53
- dev: false
54
- resolution:
55
- integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
56
- /inherits/2.0.4:
57
- dev: false
58
- resolution:
59
- integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
60
- /minimatch/3.0.4:
61
- dependencies:
62
- brace-expansion: 1.1.11
63
- dev: false
64
- resolution:
65
- integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
66
- /mkdirp/1.0.4:
67
- dev: false
68
- engines:
69
- node: '>=10'
70
- hasBin: true
71
- resolution:
72
- integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
73
- /once/1.4.0:
74
- dependencies:
75
- wrappy: 1.0.2
76
- dev: false
77
- resolution:
78
- integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
79
- /path-is-absolute/1.0.1:
80
- dev: false
81
- engines:
82
- node: '>=0.10.0'
83
- resolution:
84
- integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
85
- /wrappy/1.0.2:
86
- dev: false
87
- resolution:
88
- integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
89
- specifiers:
90
- '@nativescript-community/ui-material-core': ^5.2.1