Merge "Remove color and appearance" into nyc-dev

This commit is contained in:
Jason Monk
2016-04-13 15:43:13 +00:00
committed by Android (Google) Code Review
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);