summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java b/packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java
index cdda45f..6fd7387 100644
--- a/packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/egg/MLandActivity.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
+ * Copyright (C) 2014-2015 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +30,14 @@ public class MLandActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(R.layout.mland);
+ final boolean isCM = getIntent().getBooleanExtra("is_cm", false);
+ if (isCM) {
+ setContentView(R.layout.cmland);
+ mLand = (CMLand) findViewById(R.id.world);
+ } else {
+ setContentView(R.layout.mland);
+ mLand = (MLand) findViewById(R.id.world);
+ }
mLand = (MLand) findViewById(R.id.world);
mLand.setScoreFieldHolder((ViewGroup) findViewById(R.id.scores));
final View welcome = findViewById(R.id.welcome);