Loading res/values/colors.xml +2 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ --> <resources> <color name="background_drawer">#ff777777</color> <color name="background_drawer">@android:color/white</color> <color name="background_drawer_icon">#ffcccccc</color> <color name="black">#000</color> <color name="red">#F00</color> Loading res/xml/settings_headers.xml +1 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,7 @@ android:id="@+id/wireless_settings" android:title="@string/radio_controls_title" android:breadCrumbTitle="@string/wireless_networks_settings_title" android:fragment="com.android.settings.WirelessSettings" android:icon="@drawable/empty_icon" /> android:fragment="com.android.settings.WirelessSettings" /> <!-- DEVICE --> <header android:id="@+id/device_section" Loading src/com/android/settings/SettingsActivity.java +4 −7 Original line number Diff line number Diff line Loading @@ -521,13 +521,7 @@ public class SettingsActivity extends Activity DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); // As the Settings Theme is now Holo Light, the primary text color is "Black" ... but // we want the text color of the Drawer items to be "White", so use the inverse Theme (Holo) // for the Header adapter (and thus making the TextView appearance to have a white color. Context headersContext = new ContextThemeWrapper(this, com.android.internal.R.style.Theme_Holo); mHeaderAdapter= new HeaderAdapter(headersContext, getHeaders(), mAuthenticatorHelper, dpm); mHeaderAdapter= new HeaderAdapter(this, getHeaders(), mAuthenticatorHelper, dpm); mDevelopmentPreferences = getSharedPreferences(DevelopmentSettings.PREF_FILE, Context.MODE_PRIVATE); Loading Loading @@ -1543,6 +1537,9 @@ public class SettingsActivity extends Activity view.findViewById(com.android.internal.R.id.summary); break; } if (holder.mIcon != null) { holder.mIcon.setBackgroundResource(R.color.background_drawer_icon); } view.setTag(holder); } else { view = convertView; Loading Loading
res/values/colors.xml +2 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ --> <resources> <color name="background_drawer">#ff777777</color> <color name="background_drawer">@android:color/white</color> <color name="background_drawer_icon">#ffcccccc</color> <color name="black">#000</color> <color name="red">#F00</color> Loading
res/xml/settings_headers.xml +1 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,7 @@ android:id="@+id/wireless_settings" android:title="@string/radio_controls_title" android:breadCrumbTitle="@string/wireless_networks_settings_title" android:fragment="com.android.settings.WirelessSettings" android:icon="@drawable/empty_icon" /> android:fragment="com.android.settings.WirelessSettings" /> <!-- DEVICE --> <header android:id="@+id/device_section" Loading
src/com/android/settings/SettingsActivity.java +4 −7 Original line number Diff line number Diff line Loading @@ -521,13 +521,7 @@ public class SettingsActivity extends Activity DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); // As the Settings Theme is now Holo Light, the primary text color is "Black" ... but // we want the text color of the Drawer items to be "White", so use the inverse Theme (Holo) // for the Header adapter (and thus making the TextView appearance to have a white color. Context headersContext = new ContextThemeWrapper(this, com.android.internal.R.style.Theme_Holo); mHeaderAdapter= new HeaderAdapter(headersContext, getHeaders(), mAuthenticatorHelper, dpm); mHeaderAdapter= new HeaderAdapter(this, getHeaders(), mAuthenticatorHelper, dpm); mDevelopmentPreferences = getSharedPreferences(DevelopmentSettings.PREF_FILE, Context.MODE_PRIVATE); Loading Loading @@ -1543,6 +1537,9 @@ public class SettingsActivity extends Activity view.findViewById(com.android.internal.R.id.summary); break; } if (holder.mIcon != null) { holder.mIcon.setBackgroundResource(R.color.background_drawer_icon); } view.setTag(holder); } else { view = convertView; Loading