package com.baidu.cafe.remote;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class LockActivity extends Activity {
    public final static String unlockPassword = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lock);

        Button buttonUnlock = (Button) findViewById(R.id.button_unlock);
        buttonUnlock.setOnClickListener(new Button.OnClickListener() {
            @Override
            public void onClick(View v) {
                EditText editTextPassword = (EditText) findViewById(R.id.editTextPassword);
                String input = editTextPassword.getText().toString();
                if(unlockPassword !=null && unlockPassword.equals(input)){
                    Log.print("Unlock!");
                    onStop();
                }
            }
        });
    }
}

@@ -255,14 +255,8 @@
 lic 
-final 
 stat
@@ -838,16 +838,17 @@
       if
+ 
 (unlockP
@@ -857,16 +857,17 @@
 sword !=
+ 
 null && 
@@ -895,16 +895,17 @@
 (input))
+ 
 %7B%0A      

add password for LockActivity