Commit fca40ed
committed
Let a hand-built LoadedApk opt into the API 101 lifecycle
The API 101 onPackageLoaded/onPackageReady callbacks dispatch from the LoadedApk.createAppFactory and
createOrUpdateClassLoaderLocked hooks, gated on LoadedApkTracker. A host that builds a LoadedApk by
hand, before those hooks exist, never registers with the tracker, so expose
VectorStartup.trackLoadedApk (with a Startup facade) to enrol its instance and widen LoadedApkTracker
to internal. Once tracked, onPackageLoaded dispatches before the app's AppComponentFactory
initializer, as the API requires.1 parent 8a15649 commit fca40ed
3 files changed
Lines changed: 22 additions & 1 deletion
File tree
- legacy/src/main/java/org/matrix/vector
- xposed/src/main/kotlin/org/matrix/vector/impl
- core
- hookers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments