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

Commit 98df5dde authored by Andy Mast's avatar Andy Mast
Browse files

Avoid boot looping when theme provider is unavailable

Was reported to happen when the device is encrypted.

Change-Id: I0e8da0270180038211bc469792bd5089aff49e96
parent 6e854a8a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -426,7 +426,12 @@ public class ThemeService extends IThemeService.Stub {
            incrementProgress(progressIncrement);
        }

        try {
            updateProvider(request, updateTime);
        } catch(IllegalArgumentException e) {
            // Safeguard against provider not being ready yet.
            Log.e(TAG, "Not updating the theme provider since it is unavailable");
        }

        if (shouldUpdateConfiguration(request)) {
            updateConfiguration(request, removePerAppTheme);