fixed light theme header background when no header image was set
This commit is contained in:
parent
31fff630f3
commit
d34f4429cd
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@ import android.support.design.widget.FloatingActionButton;
|
||||||
import android.support.design.widget.TabLayout;
|
import android.support.design.widget.TabLayout;
|
||||||
import android.support.graphics.drawable.VectorDrawableCompat;
|
import android.support.graphics.drawable.VectorDrawableCompat;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
|
import android.support.v4.content.ContextCompat;
|
||||||
import android.support.v4.view.ViewPager;
|
import android.support.v4.view.ViewPager;
|
||||||
import android.text.SpannableStringBuilder;
|
import android.text.SpannableStringBuilder;
|
||||||
import android.text.Spanned;
|
import android.text.Spanned;
|
||||||
|
@ -479,6 +480,8 @@ public class MainActivity extends BaseActivity implements SFragment.OnUserRemove
|
||||||
backgroundHeight = background.getMeasuredHeight();
|
backgroundHeight = background.getMeasuredHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
background.setBackgroundColor(ContextCompat.getColor(this, R.color.window_background_dark));
|
||||||
|
|
||||||
Picasso.with(MainActivity.this)
|
Picasso.with(MainActivity.this)
|
||||||
.load(me.header)
|
.load(me.header)
|
||||||
.placeholder(R.drawable.account_header_missing)
|
.placeholder(R.drawable.account_header_missing)
|
||||||
|
|
Loading…
Reference in a new issue