Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2fa848b authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Sahil Sonar
Browse files

Use java 17

parent d374ea32
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -11,6 +11,12 @@ android {
            res.srcDirs = ['res']
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    addFrameworkJar('framework-14.jar')
}

+2 −2
Original line number Diff line number Diff line
@@ -365,8 +365,8 @@ public class BaseIconFactory implements AutoCloseable {
     * Wraps the provided icon in an adaptive icon drawable
     */
    public AdaptiveIconDrawable wrapToAdaptiveIcon(@NonNull Drawable icon) {
        if (icon instanceof AdaptiveIconDrawable) {
            return (AdaptiveIconDrawable) icon;
        if (icon instanceof AdaptiveIconDrawable aid) {
            return aid;
        } else {
            EmptyWrapper foreground = new EmptyWrapper();
            AdaptiveIconDrawable dr = new AdaptiveIconDrawable(