package com.ezentis.ezentistrackingapp;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class WelcomeActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.content_welcome);

        findViewById(R.id.register).setOnClickListener(this);
        findViewById(R.id.login).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        Intent intent;
        if (v.getId() == R.id.register) {
            intent = new Intent(this, RegisterActivity.class);
        } else {
            intent = new Intent(this, LoginActivity.class);
        }

        startActivity(intent);
    }
}

@@ -599,17 +599,16 @@
 ew v) %7B%0A
-%0A
         
@@ -624,22 +624,28 @@
 tent
-;%0A        if (
+ = new Intent(this, 
 v.ge
@@ -670,129 +670,35 @@
 ster
-) %7B%0A            intent = new Intent(this, RegisterActivity.class);%0A        %7D else %7B%0A            intent = new Intent(this,
+ ? RegisterActivity.class :
  Log
@@ -720,19 +720,8 @@
 s);%0A
-        %7D%0A%0A
     

simplify code