Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(manage-space): crash if getPackageSizeInfo fails #17413

Merged
merged 1 commit into from
Nov 11, 2024

Commits on Nov 10, 2024

  1. fix(manage-space): crash if getPackageSizeInfo fails

    On a (knockoff?) API 25 phone, `getPackageSizeInfo` failed with
    
    ```
    java.lang.NoSuchMethodException: getPackageSizeInfo [class java.lang.String, interface b.a]
    	at java.lang.Class.getMethod(Class.java:1981)
    	at java.lang.Class.getMethod(Class.java:1637)
    	at com.ichi2.anki.ui.windows.managespace.FileUtilsKt.getUserDataAndCacheSizeUsingGetPackageSizeInfo(FileUtils.kt:115)
    ```
    
    We fix this via:
    
    * handling the exception
    * documenting the exception
    
    Fixes 17387
    david-allison committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    b02115e View commit details
    Browse the repository at this point in the history