mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 11:45:28 +00:00
Fix status bar color on Android 5.x.
This commit is contained in:
committed by
Cody Henthorne
parent
424979d91f
commit
37f4557fef
@@ -2003,7 +2003,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
||||
|
||||
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color_wallpaper);
|
||||
toolbar.setBackgroundColor(toolbarColor);
|
||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||
if (Build.VERSION.SDK_INT > 21) {
|
||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||
}
|
||||
} else {
|
||||
wallpaper.setImageDrawable(null);
|
||||
wallpaperDim.setVisibility(View.GONE);
|
||||
@@ -2014,7 +2016,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
||||
|
||||
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color);
|
||||
toolbar.setBackgroundColor(toolbarColor);
|
||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||
if (Build.VERSION.SDK_INT > 21) {
|
||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||
}
|
||||
}
|
||||
fragment.onWallpaperChanged(chatWallpaper);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user