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

Commit 78850931 authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Merge "CM11 Themes: Use sendBroadcastAsUser in ThemeService" into cm-11.0

parents f271f533 45790132
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);
        }
    }