Merge "Remove color and appearance" into nyc-dev

am: c2e8857

* commit 'c2e8857a284433ea83006349bcba204bdd1897cc':
  Remove color and appearance

Change-Id: I7650274e1c3b4167a699e5697aeabeba1ccc898c
This commit is contained in:
Jason Monk
2016-04-13 15:47:13 +00:00
committed by android-build-merger
2 changed files with 4 additions and 1 deletions

View File

@@ -100,10 +100,12 @@
</PreferenceScreen>
<!--
<Preference
android:key="color_transform"
android:title="@string/color_and_appearance"
android:fragment="com.android.systemui.tuner.ColorAndAppearanceFragment" />
-->
<PreferenceScreen
android:key="volume_and_do_not_disturb"

View File

@@ -36,7 +36,8 @@ public class TunerActivity extends SettingsDrawerActivity implements
super.onCreate(savedInstanceState);
if (getFragmentManager().findFragmentByTag(TAG_TUNER) == null) {
boolean showDemoMode = getIntent().getAction().equals(
final String action = getIntent().getAction();
boolean showDemoMode = action != null && action.equals(
"com.android.settings.action.DEMO_MODE");
boolean showNightMode = getIntent().getBooleanExtra(
NightModeFragment.EXTRA_SHOW_NIGHT_MODE, false);