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

Commit 0eebe4ce authored by Andy Mast's avatar Andy Mast Committed by Steve Kondik
Browse files

Avoid boot looping when theme provider is unavailable

Was reported to happen when the device is encrypted.

Change-Id: I0e8da0270180038211bc469792bd5089aff49e96
parent 609923e5
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);