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

Commit 45790132 authored by d34d's avatar d34d
Browse files

CM11 Themes: Use sendBroadcastAsUser in ThemeService

Change-Id: I2a283318357ece9f6195a9bb825748b4549396af
parent 8c7a877a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ import android.os.Message;
import android.os.RemoteCallbackList;
import android.os.RemoteException;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.provider.Settings;
import android.provider.ThemesContract;
import android.text.TextUtils;
@@ -461,7 +462,8 @@ public class ThemeService extends IThemeService.Stub {
        }

        if (success) {
            mContext.sendBroadcast(new Intent(Intent.ACTION_KEYGUARD_WALLPAPER_CHANGED));
            mContext.sendBroadcastAsUser(new Intent(Intent.ACTION_KEYGUARD_WALLPAPER_CHANGED),
                    UserHandle.ALL);
        }
        return success;
    }
@@ -639,7 +641,8 @@ public class ThemeService extends IThemeService.Stub {

        // if successful, broadcast that the theme changed
        if (isSuccess) {
            mContext.sendBroadcast(new Intent(ThemeUtils.ACTION_THEME_CHANGED));
            mContext.sendBroadcastAsUser(new Intent(ThemeUtils.ACTION_THEME_CHANGED),
                    UserHandle.ALL);
        }
    }