| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 30981aa commit 8241e4b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -176,7 +176,23 @@ export class Frame extends FrameBase { | |||
| 176 | 176 | } | |
| 177 | 177 | } | |
| 178 | 178 | ||
| 179 | + onUnloaded(){ | ||
| 180 | + if(this._currentEntry && this._currentEntry.fragment){ | ||
| 181 | + console.log("?!?@# ===> removing fragment: " + this._currentEntry.fragmentTag); | ||
| 182 | + | ||
| 183 | + const manager: android.app.FragmentManager = this._getFragmentManager(); | ||
| 184 | + | ||
| 185 | + const transaction = manager.beginTransaction(); | ||
| 186 | + transaction.remove(this._currentEntry.fragment); | ||
| 187 | + transaction.commitAllowingStateLoss(); | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + super.onUnloaded(); | ||
| 191 | + } | ||
| 192 | + | ||
| 179 | 193 | private createFragment(backstackEntry: BackstackEntry, fragmentTag: string): android.app.Fragment { | |
| 194 | + console.log("?!?@# ===> creating fragment: " + fragmentTag); | ||
| 195 | + | ||
| 180 | 196 | ensureFragmentClass(); | |
| 181 | 197 | const newFragment = new fragmentClass(); | |
| 182 | 198 | const args = new android.os.Bundle(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments