When LicenseFragment starts, it triggers loading of licenses, which happens on a background thread and can take some time. If LicenseFragment gets detached before loading is finished, the call to `resources.assets` will throw `IllegalStateException`. Now `loadLicenses()` receives `AssetManager` as an argument, and doesn't try to retrieve it from LicenseFragment instance. |
||
|---|---|---|
| .. | ||
| androidTest/java/com/gaurav/avnc | ||
| main | ||
| test/java/com/gaurav/avnc/ui | ||