From d34f4429cd21f9c92f7d14fff8e1a99e4cffc215 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 5 May 2017 17:21:20 +0200 Subject: [PATCH] fixed light theme header background when no header image was set --- app/src/main/java/com/keylesspalace/tusky/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java index c93bb5ed..f6d2672d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java @@ -29,6 +29,7 @@ import android.support.design.widget.FloatingActionButton; import android.support.design.widget.TabLayout; import android.support.graphics.drawable.VectorDrawableCompat; import android.support.v4.app.Fragment; +import android.support.v4.content.ContextCompat; import android.support.v4.view.ViewPager; import android.text.SpannableStringBuilder; import android.text.Spanned; @@ -479,6 +480,8 @@ public class MainActivity extends BaseActivity implements SFragment.OnUserRemove backgroundHeight = background.getMeasuredHeight(); } + background.setBackgroundColor(ContextCompat.getColor(this, R.color.window_background_dark)); + Picasso.with(MainActivity.this) .load(me.header) .placeholder(R.drawable.account_header_missing)