After testing my app on a HUAWEI Y538, I noticed something weird: the status bar is showing a strange gradient rather than the color I have intended. I have a pretty straight methodology for setting the status bar in my base activity class, which is the following:
protected void setStatusBarColor(int color) {
    Window window = getWindow();
    if (Build.VERSION.SDK_INT > 20) {
        window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
        window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        window.setStatusBarColor(color);
    } 
}
Though, for some reason, this is not working on the HUAWEI phone. Does anyone have any insight as to why this could be happening. Thanks in advance!!
 
    