Merge pull request #1690 from apicellaj/PrefBackground

Change settings background color to white
This commit is contained in:
Mario Đanić 2017-10-19 22:05:35 +02:00 committed by GitHub
commit ff32f5e3d7

View file

@ -46,6 +46,7 @@ import android.preference.PreferenceManager;
import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
import android.support.annotation.LayoutRes;
import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
import android.view.Menu;
@ -134,6 +135,8 @@ public class Preferences extends PreferenceActivity
actionBar.setDisplayHomeAsUpEnabled(true);
ThemeUtils.setColoredTitle(actionBar, getString(R.string.actionbar_settings));
actionBar.setBackgroundDrawable(new ColorDrawable(ThemeUtils.primaryColor()));
getWindow().getDecorView().setBackgroundDrawable(new ColorDrawable(ResourcesCompat
.getColor(getResources(), R.color.background_color, null)));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setStatusBarColor(ThemeUtils.primaryDarkColor());