Repository navigation
Commit 0b6d95f
committed
fix(plugin-manager): stop crash restoring plugin fragments after process death
When a plugin dialog fragment (e.g. the AI settings dialog) is restored from saved state after process death — before the plugin has reloaded and registered its classloader — the factory's fallback was meant to substitute a placeholder Fragment. It caught ClassNotFoundException, but FragmentFactory.loadFragmentClass wraps that in a Fragment.InstantiationException, so the catch never matched and the exception propagated into a fatal crash loop.
Also catch Fragment.InstantiationException so the placeholder substitution actually runs.1 parent 2bf361c commit 0b6d95f
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- plugin-manager/src/main/kotlin/com/itsaky/androidide/plugins/manager/fragment
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
0 commit comments