Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44adf3e4 authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

systemui: fix npe in egg



Change-Id: Ie5445523f50cc4b6808af9698bbf97a20a6eeebe
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 027befbe
Loading
Loading
Loading
Loading
+4 −14
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.systemui.egg;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.android.systemui.R;
@@ -30,19 +29,10 @@ public class LLandActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final boolean isCM = getIntent().getBooleanExtra("is_cm", false);
        if (isCM) {
            setContentView(R.layout.cmland);
            CMLand world = (CMLand) findViewById(R.id.world);
            world.setScoreField((TextView) findViewById(R.id.score));
            world.setSplash(findViewById(R.id.welcome));
            Log.v(CMLand.TAG, "focus: " + world.requestFocus());
        } else {
            setContentView(R.layout.lland);
        setContentView(isCM ? R.layout.cmland : R.layout.lland);
        mLand = (LLand) findViewById(R.id.world);
        mLand.setScoreField((TextView) findViewById(R.id.score));
        mLand.setSplash(findViewById(R.id.welcome));
            //Log.v(LLand.TAG, "focus: " + mLand.requestFocus());
        }
    }

    @Override