kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix status bar color on Android 5.x.
rodzic
424979d91f
commit
37f4557fef
|
@ -2003,7 +2003,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
||||||
|
|
||||||
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color_wallpaper);
|
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color_wallpaper);
|
||||||
toolbar.setBackgroundColor(toolbarColor);
|
toolbar.setBackgroundColor(toolbarColor);
|
||||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
if (Build.VERSION.SDK_INT > 21) {
|
||||||
|
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
wallpaper.setImageDrawable(null);
|
wallpaper.setImageDrawable(null);
|
||||||
wallpaperDim.setVisibility(View.GONE);
|
wallpaperDim.setVisibility(View.GONE);
|
||||||
|
@ -2014,7 +2016,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
||||||
|
|
||||||
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color);
|
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color);
|
||||||
toolbar.setBackgroundColor(toolbarColor);
|
toolbar.setBackgroundColor(toolbarColor);
|
||||||
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
if (Build.VERSION.SDK_INT > 21) {
|
||||||
|
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fragment.onWallpaperChanged(chatWallpaper);
|
fragment.onWallpaperChanged(chatWallpaper);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue