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

Commit b01e6602 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Sahil Sonar
Browse files

fix(widget) : Fix rare crash with widget



[SahilSonar - adapted to A14]

Signed-off-by: default avatarSahilSonar <sss.sonar2003@gmail.com>
parent 62479e74
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -264,8 +264,8 @@ public class LauncherAppWidgetHostView extends BaseLauncherAppWidgetHostView
    public AppWidgetProviderInfo getAppWidgetInfo() {
        AppWidgetProviderInfo info = super.getAppWidgetInfo();
        if (info != null && !(info instanceof LauncherAppWidgetProviderInfo)) {
            throw new IllegalStateException("Launcher widget must have"
                    + " LauncherAppWidgetProviderInfo");
            // Lets not crash instead convert the info and use
            info = LauncherAppWidgetProviderInfo.fromProviderInfo(getContext(), info);
        }
        return info;
    }