From 64a8e3f569e72e66a0e94485c3915f5844760b7b Mon Sep 17 00:00:00 2001 From: Joe Apicella Date: Wed, 18 Oct 2017 22:28:07 -0700 Subject: [PATCH] change settings background color to white --- .../java/com/owncloud/android/ui/activity/Preferences.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/activity/Preferences.java b/src/main/java/com/owncloud/android/ui/activity/Preferences.java index 122c93830c..f6ff52618e 100644 --- a/src/main/java/com/owncloud/android/ui/activity/Preferences.java +++ b/src/main/java/com/owncloud/android/ui/activity/Preferences.java @@ -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());